Boost logo

Boost Users :

Subject: Re: [Boost-users] Missing libboost_thread-vc100-mt-s-1_49.lib
From: Pekka Seppänen (pekka.seppanen_at_[hidden])
Date: 2012-07-24 10:16:33


On 24.7.2012 17:07, VimalMathew_at_[hidden] wrote:
> So I need to explicitly mention Symphony libraries in Configuration Properties->Linker->Input->Additional Dependencies?
>

Yes.

If you dislike that, you may also use #pragma comment(lib, "library.lib")
syntax. It's pretty much the same thing.

And don't forget to specify the library search paths ;)

-- Pekka

> --
> Vimal
>
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Pekka Seppänen
> Sent: Tuesday, July 24, 2012 9:56 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Missing libboost_thread-vc100-mt-s-1_49.lib
>
> On 24.7.2012 16:32, VimalMathew_at_[hidden] wrote:
>> I tried that.
>> I get this huge bunch of LNK2019 unresolved external symbol errors. This is one:
>> mex_all_paths_multithread_nograph.obj : error LNK2019: unresolved
>> external symbol "int __cdecl sym_close_environment(struct
>> SYM_ENVIRONMENT *)"
>> (?sym_close_environment@@YAHPAUSYM_ENVIRONMENT@@@Z) referenced in
>> <ommited>
>>
>> Do you know why this is happening?
>>
>
> Hi,
>
> looks like you're not linking against the Symphony libraries (thus the missing
> sym_close_environment) (and I guess Matlab libs are next). It's not enough that you specify the library paths, you need to specify the actual libraries too (so convert those -l options and remember to specify the complete name as -l does prefix and append things). You may pass the linker the /VERBOSE option to see what it actually tries to do; Sometimes it's quite useful.
>
> (This works mostly "automatically" with Boost as Boost.Config uses certains MSVC specific #pragmas to tell the linker (thru compiler) which libraries to link against so all you need to worry about is the path.)
>
> -- Pekka
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net