
On 24.7.2012 17:07, VimalMathew@Eaton.com 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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Pekka Seppänen Sent: Tuesday, July 24, 2012 9:56 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] Missing libboost_thread-vc100-mt-s-1_49.lib
On 24.7.2012 16:32, VimalMathew@Eaton.com 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users