Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX 6.5 Static linking with libsocket crashes debugger: (2 Items)
   
QNX 6.5 Static linking with libsocket crashes debugger  
Hello,

I have a project that uses a fully static link. The project runs fine on the target, but if I try to launch it with the 
debugger, I get an error: Can't access memory at address 0x8144564.

If I dynamically link, the project launches fine via the debugger.

I need a fully static link for now because some of the targets do not have the newer libraries like libstdc++.so.16 (I'm
 using GCC 4.6) and I don't have control over the targets.

I tried using the official QNX 6.5 setup w/GCC 4.3 and the same problem occurs. I did not try QNX 6.4.1.

I would really like to be able to debug and build with the same configuration.

Thanks in advance,

Dave.
Re: QNX 6.5 Static linking with libsocket crashes debugger  
BTW the link command is this:

QCC -static -V4.4.2,gcc_ntox86 -Y_gpp -march=i486  -DNDEBUG  -lang-c++ -o objects/QNX_X86/UT_CmdParser ./objects/QNX_X86
/UT_CmdParser.o -Bstatic ../../../3rdparty/xsde/xsde-3.2.0-i686-windows/libxsde/xsde/libxsde.a ../../../3rdparty/
log4cplus/objects/QNX_X86/liblog4cplus.a  -lsocket