cannot open file 'libboost_regex-vc120-mt-s-1_55.lib'
Bonjour,
j'utilise Visual Studio13, j'ai compilé boost 1.55.0 tous s'est bien passé, j'ai ajouté include path et libray path dans mon projet,
je suis sous windows 7 x64.
en utilisant les regex il ne trouve pas la librairie "cannot open file 'libboost_regex-vc120-mt-s-1_55.lib' ".
quand je regarde dans le répertoire stage/lib j'ai :
- libboost_regex-vc120-mt-1_55.lib
- libboost_regex-vc120-mt-gd-1_55.lib
mais je n'ai pas la librairie libboost_regex-vc120-mt-s-1_55.lib avec le "s".
la ligne de compilation que j'ai utilisé est la suivante:
bjam toolset=msvc-12.0 variant=debug,release threading=multi link=static
J'ai du oublié un paramètre de compilation mais je ne voit pas lequel ou bien un paramètre dans les propriétés du projet au niveau du préprocesseur.
Ou bien ce n'est pas la version 64bit peut etre.
Quelqu'un aurait une idée ?
Merci de votre aide.
EDIT:
J'ai pu récupérer la version 64 bit : boost_1_55_0-msvc-12.0-64.exe qui installe les binaires .lib mais j'ai des unresolved external symbol:
Code:
1 2 3 4 5 6 7
|
Error 3 error LNK2001: unresolved external symbol "private: class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > & __thiscall boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::do_assign(char const *,char const *,unsigned int)" (?do_assign@?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@boost@@AAEAAV12@PBD0I@Z) D:\donnees\dev\VS2013\chatlog\chatmanager\TextViewRegex.obj
Error 4 error LNK2001: unresolved external symbol "public: bool __thiscall boost::re_detail::perl_matcher<class std::_String_const_iterator<class std::_String_val<struct std::_Simple_types<char> > >,class std::allocator<struct boost::sub_match<class std::_String_const_iterator<class std::_String_val<struct std::_Simple_types<char> > > > >,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::match(void)" (?match@?$perl_matcher@V?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@V?$allocator@U?$sub_match@V?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@@boost@@@2@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@QAE_NXZ) D:\donnees\dev\VS2013\chatlog\chatmanager\TextViewRegex.obj
Error 5 error LNK2001: unresolved external symbol "private: void __thiscall boost::re_detail::perl_matcher<class std::_String_const_iterator<class std::_String_val<struct std::_Simple_types<char> > >,class std::allocator<struct boost::sub_match<class std::_String_const_iterator<class std::_String_val<struct std::_Simple_types<char> > > > >,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > >::construct_init(class boost::basic_regex<char,struct boost::regex_traits<char,class boost::w32_regex_traits<char> > > const &,enum boost::regex_constants::_match_flags)" (?construct_init@?$perl_matcher@V?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@V?$allocator@U?$sub_match@V?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@@boost@@@2@U?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@re_detail@boost@@AAEXABV?$basic_regex@DU?$regex_traits@DV?$w32_regex_traits@D@boost@@@boost@@@3@W4_match_flags@regex_constants@3@@Z) D:\donnees\dev\VS2013\chatlog\chatmanager\TextViewRegex.obj |
Le répertoire des includes dans mon cas pointent vers :
D:\donnees\dev\library\boost_1_55_0
et pour les librairies vers:
D:\donnees\dev\library\boost_1_55_0\stage\lib
J'ai essayé d'ajouter dans le préprocessor au niveau des propriétés du projet "BOOST_MSVC " mais ca ne donne rien.
Merci de votre aide.