Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.8.0
-
None
-
Windows, qnx660, armv7a
-
0090ba818fd500b807863f79d2c708800fff9a69
Description
Simple "hello world" program cannot be linked without -lang-c++ option
The folowing command resulting to "undefined reference to `std::cout'"
C:/qnx660/host/win32/x86/usr/bin/QCC.exe "-Wl,--sysroot=C:/qnx660/target/qnx6" -Vgcc_ntoarmv7le -o D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/qbs18test2 D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/.obj/3a52ce780950d4d9/main.cpp.o
Adding "-lang-c++" fixing it.
C:\qnx660\host\win32\x86\usr\bin\QCC.exe "-Wl,--sysroot=C:/qnx660/target/qnx6" -lang-c++ -Vgcc_ntoarmv7le -o D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/qbs18test2 D:/Projects/.BUILDS/qbs18test2/{74ea04ca-75b7-4726-89aa-9bab6d7a8a22}/debug/qtc_QNX_Qt_5_0b1813ff-debug/qbs18test2.qtc-QNX-Qt-5-0b1813ff.994cf08c/.obj/3a52ce780950d4d9/main.cpp.o