Im trying to compile commoncpp under qnx with g++. I tried the changes mentioned in (http://lists.gnu.org/archive/html/bug-commoncpp/2003-07/msg00001.html) but they dont work for me.
The Problem (at least atm) lies in the socket.cpp where he complains about not knowing struct addrinfo which is defined in netdb.h (i included the file).
The section in netdb.h where addrinfo is defined starts with:
"#if !defined(_XOPEN_SOURCE)
struct addrinfo ...."
The compiling error (socket.cpp) is:
"aggregate `struct addrinfo hint' has incomplete type and cannot be initialized"
Any help would be great.
thx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Im trying to compile commoncpp under qnx with g++. I tried the changes mentioned in (http://lists.gnu.org/archive/html/bug-commoncpp/2003-07/msg00001.html) but they dont work for me.
The Problem (at least atm) lies in the socket.cpp where he complains about not knowing struct addrinfo which is defined in netdb.h (i included the file).
The section in netdb.h where addrinfo is defined starts with:
"#if !defined(_XOPEN_SOURCE)
struct addrinfo ...."
The compiling error (socket.cpp) is:
"aggregate `struct addrinfo hint' has incomplete type and cannot be initialized"
Any help would be great.
thx
i managed to compile 1.2.7 with --without-nat and --without-ipv6