I encountered the following error when attempting to make the program.
Please advise.
Thank you.
$ make all
g++ -g -Wall test.cpp -o test.o -c
In file included from test.cpp:4:
address.h:33: error: expected class-name before '{' token
address.h:42: error: expected ',' or '...' before '&' token
address.h:42: error: ISO C++ forbids declaration of 'addrinfo' with no type
address.h:53: error: expected ',' or '...' before '&' token
address.h:53: error: ISO C++ forbids declaration of 'addrinfo' with no type
address.h: In member function 'EndpointAddress& EndpointAddress::operator=(int)':
address.h:53: error: 'orig' was not declared in this scope
address.h: In member function 'EndpointAddress::operator sockaddr()':
address.h:59: error: 'memset' was not declared in this scope
address.h:60: error: 'ai_addr' was not declared in this scope
make: *** [test.o] Error 1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I encountered the following error when attempting to make the program.
Please advise.
Thank you.
$ make all
g++ -g -Wall test.cpp -o test.o -c
In file included from test.cpp:4:
address.h:33: error: expected class-name before '{' token
address.h:42: error: expected ',' or '...' before '&' token
address.h:42: error: ISO C++ forbids declaration of 'addrinfo' with no type
address.h:53: error: expected ',' or '...' before '&' token
address.h:53: error: ISO C++ forbids declaration of 'addrinfo' with no type
address.h: In member function 'EndpointAddress& EndpointAddress::operator=(int)':
address.h:53: error: 'orig' was not declared in this scope
address.h: In member function 'EndpointAddress::operator sockaddr()':
address.h:59: error: 'memset' was not declared in this scope
address.h:60: error: 'ai_addr' was not declared in this scope
make: *** [test.o] Error 1
Make sure that you are using an up to date version of gcc. It compiles fine for me under Ubuntu, but I am not sure what test is supposed to do.
Sorry that I have been quiet for a while, my schedule has been hectic for the last year.