Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8280229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:35:53+00:00 2026-06-08T09:35:53+00:00

On compiling my program in Qt Creator I m getting linker error :-1: error:

  • 0

On compiling my program in Qt Creator I m getting linker error

:-1: error: LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_48.lib'

I add the following lines in the .pro file for the same

win32: LIBS += -L$$PWD/../../../../../../../boost_1_48_0/stage/lib/ -lboost_thread-vc100-mt-gd-1_48

INCLUDEPATH += $$PWD/../../../../../../../boost_1_48_0/stage
DEPENDPATH += $$PWD/../../../../../../../boost_1_48_0/stage

I still have get the same error so I rebuild the library

C:\boost_1_48_0>bjam.exe --toolset=msvc --build-type=complete link=shared runtime-link=shared --with-thread --clean
C:\boost_1_48_0>bjam.exe --toolset=msvc --build-type=complete link=shared runtime-link=shared --with-thread 

On using static library

win32: LIBS += -L$$PWD/../../../../../../../boost_1_48_0/stage/lib/ -llibboost_thread-vc100-mt-sgd-1_48

INCLUDEPATH += $$PWD/../../../../../../../boost_1_48_0/stage
DEPENDPATH += $$PWD/../../../../../../../boost_1_48_0/stage

win32: PRE_TARGETDEPS += $$PWD/../../../../../../../boost_1_48_0/stage/lib/libboost_thread-vc100-mt-sgd-1_48.lib

I get some more errors

msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall std::_Container_base12::_Orphan_all(void)" (?_Orphan_all@_Container_base12@std@@QAEXXZ) already defined in libboost_thread-vc100-mt-sgd-1_48.lib(thread.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::~_Container_base12(void)" (??1_Container_base12@std@@QAE@XZ) already defined in libboost_thread-vc100-mt-sgd-1_48.lib(thread.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall std::_Container_base12::_Container_base12(void)" (??0_Container_base12@std@@QAE@XZ) already defined in libboost_thread-vc100-mt-sgd-1_48.lib(thread.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static unsigned int __cdecl std::numeric_limits<unsigned int>::max(void)" (?max@?$numeric_limits@I@std@@SAIXZ) already defined in libboost_thread-vc100-mt-sgd-1_48.lib(thread.obj)
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static __int64 __cdecl std::numeric_limits<__int64>::max(void)" (?max@?$numeric_limits@_J@std@@SA_JXZ) already defined in libboost_thread-vc100-mt-sgd-1_48.lib(thread.obj)
LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_48.lib'
    link /LIBPATH:"c:\Qt\4.8.1\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\Player.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\Player.exe @C:\Users\vickey\AppData\Local\Temp\Player.exe.948.15.jom
    c:\qt\4.8.1\bin\qmake.exe -spec c:\Qt\4.8.1\mkspecs\win32-msvc2010 CONFIG+=declarative_debug -o Makefile c:\cygwin\home\vickey\tunebasket\p2p\test\Player\Player.pro
    C:\QtSDK\QtCreator\bin\jom.exe -f Makefile.Debug

Any Ideas what is wrong ? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:35:55+00:00Added an answer on June 8, 2026 at 9:35 am
    #define BOOST_ALL_NO_LIB 
    

    worked for me. The problem I guess was that linker was looking for libboost_thread_vc-100-mt-gd-1_48.lib while I had configured boost_thread_vc-100-mt-gd-1_48.lib in my .pro file. Defining the macro makes it explicitly upload the library defined in the .pro file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting an error on this line tm.put(temp[j],tm.get(temp[j]).add(i)); when i was compiling my program
I am getting the following error while compiling a sample program in Qt 4.5
I'm getting illegal use of floating point error on compiling the following program. Please
After compiling the program I am getting below error invalid operands of types int
Looking for help compiling my program below. I'm getting a ***Stop. no Targets. error
i am trying to read an excel file using java. while compiling the program
When compiling this program, I get error- class Person { Person(int a) { }
I'm getting errors while compiling a program that uses threads. Here is the part
I keep coming across this common error then compiling my program. I've already tried
When do we get l-value required error...while compiling C++ program???(i am using VC++ )

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.