From: Dhrakol <dh...@ya...> - 2004-08-20 22:41:17
|
Hello all, After much combing through the archives, I am unable to find a solution to a problem I am having cross compiling a Qt app on Linux. The target is Windows. This question isn't necessarily Qt- related, but it might help to keep that in mind. Several threads on this list addressed similar problems, but the suggestions did not seem to help in this instance. Perhaps there's a minor something that I'm missing? I get several linker errors of the form "undefined reference to `std::basic_stringstream" while building a particular source file. The relevant <iosfwd> header that declares this is present, and a grep through libstdc++.a appears to reveal a corresponding definition. The linker is apparently not able to find a definition, though. Could anyone suggest a reason for this? The options I am using are: [compiler switches - something here is probably wrong] -pipe -march=i586 -mcpu=i686 -fno-exceptions -mms-bitfields -D_REENTRANT -DQT_THREAD_SUPPORT ; [path to standard headers] This is set to the /include directories for the mingw crosscompiler via -L switches. [path to standard libraries] This is set to the /lib directories for the mingw crosscompiler. Adding a -lstdc++ switch does not seem to help. Some threads mentioned libstdc++.la files in MINGW_DIRECTORY/.../lib as the culprits behind similar "undefined reference" errors. As suggested, I tried deleting/renaming these, as well as replacing them with ones from the official mingw binaries on www.mingw.org. I also replaced the compiled standard library that came with the prebuilt crosscompiler binary I downloaded, with a precompiled standard library from www.mingw.org. No luck in any of these cases. If anyone can see where I'm going wrong, your help would be greatly appreciated. Thanks! -Dhrakol __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |