View Full Version : Qt Creator Add 3dparty (boost) header files
trallallero
17th October 2011, 09:04
I can compile and link using boost with qtcreator adding these lines to the pro file:
INCLUDEPATH += ${THIRD_PARTY_LIB_PATH}/boost_1_42/include
LIBS += -L${THIRD_PARTY_LIB_PATH}/boost_1_42/gcc_4.2.4/lib
The problem is that the editor doesn't find the header files and, thus, it doesn't show me all the class members.
So, how can I add 3dparty header files to the environment ?
waterstw
24th October 2011, 22:35
trallallero,
I had to add each library manually after adding the library directory. Try:
LIBS += -LLIBS += -L${THIRD_PARTY_LIB_PATH}/boost_1_42/gcc_4.2.4/lib
LIBS += -l"library Name" (notice the lower-case "l")
Good luck,
waterstw
trallallero
25th October 2011, 07:23
Thanks waterstw, but linking is not my problem.
I just need qtcreator to know where the boost header files are.
I compile and link without problems, as I wrote, but the qtcreator editor (not the compiler/linker) doesn't know where boost is.
kosasker
26th October 2011, 14:31
What do you mean, QtCreator doesn't know? I think you cant see header files, when you try to include... Right?
trallallero
27th October 2011, 07:34
I mean this:
http://img542.imageshack.us/img542/534/qtcreatorboost.png (http://imageshack.us/photo/my-images/542/qtcreatorboost.png/)
Even though it properly compiles and links, the editor cannot find the boost header files so I don't get any help/information about the boost classes during typing the code.
It's not a big deal but it's annoying.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.