Forum Topic - Error while linking stdc++ lib using ntox86-ld: (2 Items)
   
Error while linking stdc++ lib using ntox86-ld  
Hi All,

we are getting linking error (see the log below) while linking stdc++ lib (located at $(QNX_TARGET)/x86/lib/gcc/4.2.4/) 
into our image using the linker ntox86-ld.

In function `__sti__$E':
/local1/tools/qnx/qnx640/target/qnx6/usr/include/cpp/iostream:65536: undefined reference to `std::_Winit::_Winit()'
/local1/tools/qnx/qnx640/target/qnx6/usr/include/cpp/iostream:65536: undefined reference to `std::_Winit::~_Winit()'

Please help me in fixing this issue

Thanks in advance

Regards,
Nikshay
Re: Error while linking stdc++ lib using ntox86-ld  
This issue is solved by adding the correct header files while compilation 

just add
 
-I$(QNX_TARGET)/usr/include/c++/4.2.4 -I$(QNX_TARGET)/usr/include/c++/4.2.4/i386-pc-nto-qnx6.4.0 

as compilation flag while compiling

Thanks,
Nikshay