01-16-2013 11:13 AM
Hi All,
Sorry to post another question so shortly after my first, but I am stuck again and could use the help of a more experience BB10 developer,
I have created a 'managed' cascases project in the eclipse-based IDE. I'm getting an undefined reference to netstatus_get_proxy_details_for_url althought I link libbps. I also get a link error with `_readdir_r' which is odd.
I have the following qcc command and linker error. (cut for brevity)
... -lbb -lbps -lboost_system -lboost_thread -lboost_filesystem -lcrypto -liconv -lc -lstdc++ -lsocket -linput_utilities -linput_client -lQtCore -lbbplatform -lssl -lbbcascades -lQtXml -lQtScript -lbbutility -lQtGui -lQtDeclarative -lQtSql -lQtXmlPatterns -lbps -lQtNetwork -lbbdata -lbbsystem -lxml2 -lwifi -lbtapi -lcsm -lcurl -lgoogleurl -lbbdevice -lbbsystemlocale -lm -lQtSvg -V4.6.3,gcc_ntox86_cpp -w1 -lang-c++ -g -Wl,-z,relro -Wl,-z,now -L/home/colinn/Programs/bbndk/target_10_0_9_386/qn
/home/colinn/Developer/bb/10/target_10_0_9_1673/qn
/home/colinn/Developer/bb/10/target_10_0_9_1673/qn
cc: /home/colinn/Programs/bbndk/host_10_0_9_52/linux/x
Build error occurred, build is stopped
Any suggestions? Maybe I should stick to a .pro and qmake?
netstatus_get_proxy_details_for_url
Solved! Go to Solution.
01-16-2013 11:35 AM
re-order the libraries so that -lbps appears after -lQtNetwork
01-16-2013 02:27 PM - edited 01-16-2013 02:34 PM
Thank you very much for the reply. Unfortunately the re-order doesn't yield different results. Same undefined reference. This is really bizarre. Maybe I have the wrong arch type.
here are the library directories I have in the search path:
-L/home/colinn/Programs/bbndk/target_10_0_9_386/qn
-L/home/colinn/Developer/bb/10/extra/Boost-1_48_0-
-L/home/colinn/Developer/bb/10/target_10_0_9_1673/
-L/home/colinn/Programs/bbndk/target_10_0_9_386/qn
AH! I am. I think this happened when the Simulator wouldn't run with the Gold SDK. The IDE searched and found a new QNX_TARGET but my filesystem paths remained the same. Thanks for the feedback, it helped me take a closer look at the problem