You need only to reference one library depending on your
Settings->C/C++->Code Generation:Use run-time library
value. The extension should tell you right away which version
it is you need.
Internet
eyebe97@yahoo.com@lists.boost.org - 05/11/2003 21:52
Please respond to boost-users@lists.boost.org
Sent by: boost-users-bounces@lists.boost.org
To: boost-users
cc:
Subject: [Boost-users] RE: LNK2019 errors in when compiling vc7 project
I figured out the problem.
I had already built the boost libraries. And had
specified the location (directory) of the libraries in
Linker--> General--> Additional Library Directories
field. To get my project to compile, I listed every
boost library in the Linker--> Input --> Additional
Dependancies field.
Linker--> Input --> Additional Dependancies:
C:\cpp\boost\libs\regex\build\vc7-stlport\boost_regex_vc7-stlport_mdidd.lib
C:\cpp\boost\libs\regex\build\vc7-stlport\boost_regex_vc7-stlport_mdid.lib
C:\cpp\boost\libs\regex\build\vc7-stlport\boost_regex_vc7-stlport_mdi.lib
etc...
Thanks for your help, Cyril
Please respond to boost-users@lists.boost.org
Sent by: boost-users-bounces@lists.boost.org
To: boost-users
cc:
Subject: [Boost-users] LNK2019 errors in when
compiling vc7 project
using Regex
I'm having a problem building my VS .NET C++ Console
Application. One of the classes uses the Boost RegEx++
libraries. If I compile the class by itself, I get no
errors. If I build the project, I get the 15 linking
errors (3 are included at the bottom of this message)
and they all refer to regex++ calls. I pretty sure
that my problem is that the correct regex library,
dll, or class is not specified in the correct
properties setting , but I have no clue where the
specification needs to go. Please Help!!
Project settings:
C/C++ --> General --> Additional Include Directories:
"C:\cpp\STLport-4.6\stlport";C:\cpp\boost
Linker --> General --> Additional Library Directories:
C:\cpp\boost\libs\regex\build\vc7-stlport
3 of 15 linking errors
Prob.obj : error LNK2019: unresolved external symbol
"public: __thiscall boost::reg_expression ::~reg_expression referenced in function "public: virtual void
__thiscall Prob::main(char * const,struct diff
*,bool)" (?main@Prob@@UAEXQADPAUdiff@@_N@Z)
Prob.obj : error LNK2019: unresolved external symbol
"public: __thiscall boost::reg_expression ::reg_expression referenced in function "public: virtual void
__thiscall Prob::main(char * const,struct diff
*,bool)" (?main@Prob@@UAEXQADPAUdiff@@_N@Z)
Prob.obj : error LNK2019: unresolved external symbol
"protected: void __cdecl
boost::re_detail::match_results_base ::~match_results_base __________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.