I tried to compile xerces on QNX
///////////////////////////////////Traces at the console/////////////////////////////////////////////////////////////
./runConfigure -pqnx -cqcc -xQCC
Generating makefiles with the following options …
Platform: qnx
C Compiler: qcc
C++ Compiler: QCC
Message Loader: inmem
Net Accessor: socket
Transcoder: native
Thread option: pthread
Library type: shared
bitsToBuild option: 32
Extra compile options:
Extra link options:
Extra configure options:
Debug is OFF
checking for gcc… qcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… configure: error: cannot run C compiled programs.
If you meant to cross compile, use `–host’.
See `config.log’ for more details.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*******************************config.log file ***********************************************
configure:2060: $? = 0
configure:2083: checking for C compiler default output file name
configure:2110: qcc -w -O -DNDEBUG -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET conftest.c -lsocket >&5
configure:2113: $? = 0
configure:2151: result: a.out
configure:2168: checking whether the C compiler works
configure:2178: ./a.out
./configure: ./a.out: /usr/lib/ldqnx.so.2: bad ELF interpreter: No such file or directory
configure:2181: $? = 126
configure:2190: error: cannot run C compiled programs.
If you meant to cross compile, use `–host’.
I had tried with a demo program with qcc the a.out file is formed but not able to execute it
[hemant@getz ~]$ ./a.out
bash: ./a.out: /usr/lib/ldqnx.so.2: bad ELF interpreter: No such file or directory
tried to change ld libyrary path but still not working any suggestion.