Erreur de compilation de boost::date_time avec mingw
Bonjour,
j'aimerai bien utiliser boost avec code::blocks que j'ai installé par défaut avec le compilateur mingw
j'ai téléchargé boost et bjam, j'ai lancé la ligne de commande suivante :
bjam -sMINGW_ROOT_DIRECTORY=C:\Progra~1\CodeBl~1 -sTOOLS=mingw --without-python stage
j'ai obtenu un répertoire plein de fichier .lib, fichiers que j'ai déplacés dans mon répertoire libs de code::blocks
j'ai également déposé le répertoire boost avec l'arborescence dans le répertoire d'includes
je me suis lancé simplement sur un exemple qui m'intéresse : la librairie boost::date_time
en compilant l'exemple print_hours.cpp j'obtient le résultat ci dessous :
Code:
1 2 3 4 5 6 7 8 9 10 11
| Project : Console application
Compiler : GNU GCC Compiler (called directly)
Directory : E:\Programmation\test_boost\
--------------------------------------------------------------------------------
Switching to target: default
Linking console executable: E:\Programmation\test_boost\test_boost.exe
.objs\print_hours.o:print_hours.cpp:(.text$_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_13simple_formatIcEEcE12format_monthERKS3_RSo[boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::simple_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::basic_ostream<char, std::char_traits<char> >&)]+0x38): undefined reference to `boost::gregorian::greg_month::as_short_string() const'
.objs\print_hours.o:print_hours.cpp:(.text$_ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_13simple_formatIcEEcE12format_monthERKS3_RSo[boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::simple_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::basic_ostream<char, std::char_traits<char> >&)]+0x57): undefined reference to `boost::gregorian::greg_month::as_long_string() const'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
0 errors, 0 warnings |
j'ai essayé d'autre exemples mais sans succès
j'ai du louper une étape :?