Compiling under QNX

Porting
kein0r
2005-02-28
2012-11-20
  • kein0r

    kein0r - 2005-02-28

    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

     
    • kein0r

      kein0r - 2005-02-28

      i managed to compile 1.2.7 with --without-nat and --without-ipv6

       

Log in to post a comment.