c++ elevator program help

Category: C++ Questions    |    1 views    |    Add a Comment
I want to write elevator program. Can you help me. Please…

Share/Save/Bookmark

 

Web Service Security

Category: ASP.NET Questions    |    3 views    |    Add a Comment
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.

I am using asp.net 2.0.

Share/Save/Bookmark

 

Ajaxorized

Category: JAVA Questions    |    2 views    |    Add a Comment

Share/Save/Bookmark

 

problems with seperate compilitation

Category: C++ Questions    |    1 views    |    Add a Comment
Hi! Everybody,

I have several c++ sources files as following:

main.cpp:

#include "A.hpp"

int main()
{
return 0;
}

A.hpp:

#ifndef A_HPP_
#define A_HPP_

#include "B/B.hpp"

#endif /* A_HPP_ */

B/B.hpp:

#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

thx

Share/Save/Bookmark