none
boost library on visual c++ RRS feed

  • Question

  • How can I tell Visual C++ Express to be satisfied with one build of the boost libraries or the other?

    error with only C:\Program Files\boost\boost_1_49_0\bin.v2\libs\test\build\msvc-10.0\debug\asynch-exceptions-on\threading-multi (built using bjam)

    1>------ Build started: Project: common, Configuration: Debug Win32 ------
    1>LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc100-mt-gd-1_49.lib'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

     

    error with only c:\Program Files\boost\boost_1_49_0\stage\lib (built using bootstrap & b2)

    1>------ Build started: Project: common, Configuration: Debug Win32 ------
    1>LINK : fatal error LNK1104: cannot open file 'boost_unit_test_framework-vc100-mt-gd-1_49.lib'
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    when both are in Linker->General->Additional Library Directories

    1>------ Build started: Project: common, Configuration: Debug Win32 ------
    1>boost_unit_test_framework-vc100-mt-gd-1_49.lib(boost_unit_test_framework-vc100-mt-gd-1_49.dll) : error LNK2005: "class boost::unit_test::master_test_suite_t & __cdecl

    boost::unit_test::framework::master_test_suite(void)" (?master_test_suite@framework@unit_test@boost@@YAAAVmaster_test_suite_t@23@XZ) already defined in libboost_unit_test_framework-vc100-mt-gd-1_49.lib

    (framework.obj)
    . . . etc.

     

    In Config->Linker->Command Line

    /OUT:"C:\...\Visual Studio 2010\Projects\torc_test\Debug\torc_test.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\...\Visual Studio 2010\Projects\torc_test\torc\externals\zlib\contrib\vstudio\vc10\x86\ZlibDllDebug" /LIBPATH:"c:\Program Files\boost\boost_1_49_0\stage\lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /MANIFEST /ManifestFile:"Debug\torc_test.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\...\Documents\Visual Studio 2010\Projects\torc_test\Debug\torc_test.pdb" /SUBSYSTEM:CONSOLE /PGD:"C:\...\Documents\Visual Studio 2010\Projects\torc_test\Debug\torc_test.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE

     Thank you for any suggestion.

    • Moved by Jesse Jiang Friday, August 3, 2012 9:11 AM (From:Visual C++ General)
    Monday, July 30, 2012 6:30 PM

All replies

  • Hi sbw2,

    Welcome to the MSDN forum.

    Based on your description, you add the library to Visual Studio, and get this error:

    1>boost_unit_test_framework-vc100-mt-gd-1_49.lib(boost_unit_test_framework-vc100-mt-gd-1_49.dll) : error LNK2005: "class boost::unit_test::master_test_suite_t & __cdecl

    Just like Vegan said, that means you have something unexpected happened on your *.lib files, so I suggest you go to the third party forum for better support.

    I will move this thread to off-topic.

    Thanks for your understanding and active participation in the MSDN Forum.

    Regards,

    Elegentin


    Elegentin Xie [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, August 1, 2012 8:35 AM