I am using a web services in my web project.
the project is runing using web services fine.
I had pblished it and made it anonymous access so if ay one write the URL of the web sevice in the explorer it runs ordinary without any security.
But, I want to secure these web services so that when the user write the URL of the web service in the explorer to be asked for user name and password.
#ifndef B_HPP_
#define B_HPP_
class Foo
{
int foo(int val);
};
#endif /* B_HPP_ */
B/B.cpp:
#include "B.hpp"
int Foo::foo(int val) { return val;}
when I compiled them using (actually the commands were generated by Eclipse IDE):
g++ -O0 -g3 -Wall -c -fmessage-length=0 -omain.o ..\main.cpp
g++ -O0 -g3 -Wall -c -fmessage-length=0 -oB\B.o ..\B\B.cpp
g++ -otest.exe main.o B\B.o B.o
I got these error messages:
B.o: In function `ZN3Foo3fooEi’:
C:/Users/sam/workspace/test/Debug/../B.cpp:10: multiple definition of `Foo::foo(int)’
B\B.o:C:/Users/sam/workspace/test/Debug/../B/B.cpp:10: first defined here
collect2: ld returned 1 exit status