|
Boost Users : |
From: CHABO Gabriel (Gabriel.CHABO_at_[hidden])
Date: 2008-03-05 12:33:31
Hi Rainer,
I'm trying to link statically so setting this option would require dynamic linking and another lib: boost_program_options-vc80-mt-gdp-1_34_1.lib
When I try to build this lib, I get a lot of warnings of this kind:
..\..\..\boost/program_options/errors.hpp(21) : warning C4275: non dll-interface class 'std::logic_error' used as base for dll-int
erface class 'boost::program_options::error'
D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdexcept(22) : see declaration of 'std::logic_error'
..\..\..\boost/program_options/errors.hpp(21) : see declaration of 'boost::program_options::error'
..\..\..\boost/program_options/errors.hpp(61) : warning C4251: 'boost::program_options::ambiguous_option::alternatives' : class 's
td::vector<_Ty>' needs to have dll-interface to be used by clients of class 'boost::program_options::ambiguous_option'
with
[
_Ty=std::string
]
I eventually was able to build this lib and when I build my project I still got the same warnings and the same error :(
-----Message d'origine-----
De : boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] De la part de Rainer Thaden
Envoyé : mercredi 5 mars 2008 18:20
À : boost-users_at_[hidden]
Objet : Re: [Boost-users] link problem: boost + stlport + msvc8
Hi Gabriel,
> I'm trying to write a tiny program, just to get stlport and boost to
> play nice together and I still have "unresolved external symbol" errors.
>
>
> When I tried to link, I got an error saying that
> libboost_program_options-vc80-mt-gdp-1_34_1.lib could not be found, so
> I had to build it.
Just a guess:
Did you add BOOST_ALL_DYN_LINK to your preprocessor definitions?
Kind regards,
Rainer
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
*******************************
This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system.
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