Results 1 to 5 of 5

Thread: Add 3dparty (boost) header files

  1. #1
    Join Date
    Aug 2009
    Posts
    92
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Add 3dparty (boost) header files

    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 ?

  2. #2
    Join Date
    Oct 2011
    Posts
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Add 3dparty (boost) header files

    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

  3. #3
    Join Date
    Aug 2009
    Posts
    92
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Add 3dparty (boost) header files

    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.

  4. #4
    Join Date
    Jan 2011
    Location
    Gordion
    Posts
    52
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Add 3dparty (boost) header files

    What do you mean, QtCreator doesn't know? I think you cant see header files, when you try to include... Right?

  5. #5
    Join Date
    Aug 2009
    Posts
    92
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Add 3dparty (boost) header files

    I mean this:



    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.

Similar Threads

  1. Qt header files suggestion
    By chandan in forum Newbie
    Replies: 3
    Last Post: 1st March 2011, 10:23
  2. Header Files
    By Maluko_Da_Tola in forum Newbie
    Replies: 1
    Last Post: 2nd October 2010, 12:04
  3. Replies: 2
    Last Post: 30th September 2010, 12:26
  4. header files problems
    By dognzhe in forum General Programming
    Replies: 1
    Last Post: 18th May 2009, 08:00
  5. header files not getting included
    By nimmyj in forum Installation and Deployment
    Replies: 1
    Last Post: 19th December 2006, 06:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.