Question on how to build Date_Time libraries to static linking
Hi list: After a couple years with success in using the Boost Date_Time library in Windows with minGW, now y need port the application to MS Visual C++ (actually using 2008 Express edition C++ 9.0). I downloaded the Boost 1.35.0 version, and generated the binary files with this command: bjam release debug threading=multi --toolset=msvc stage The documentation states that, in this case, the names for the libraries to static linking respond to the structure: "libboost_date_time-xxxx.lib" and that the definition libraries respond to the schema "boost_date-time-xxx.lib". In fact, along with some DLLs, I have obtained some .LIB files: boost_date_time-vc90-mt-1_35.lib boost_date_time-vc90-mt.lib boost_date_time-vc90-mt-gd-1_35.lib boost_date_time-vc90-mt-gd.lib but only four libboost_xxx.lib: libboost_test_exec_monitor-vc90-mt-1_35.lib libboost_test_exec_monitor-vc90-mt.lib libboost_test_exec_monitor-vc90-mt-gd-1_35.lib libboost_test_exec_monitor-vc90-mt-gd.lib I want use static linking with the library, so the compiler complain when looking for the file libboost_date_time-vc90-mt-gd-1_35.lib The question is: Some idea on how to get that file? Thanks.
Hi,
bjam release debug threading=multi --toolset=msvc stage
add link=static There were several postings to the list for that, recently. A lot of them with "link" or MSVC in the subject so easy to find. Citing one of them: Hi, you could also use the bjam option --build-type=complete which worked pretty good for me using vs studio express 2008. With that option all possible dll's and static libraries should be built. Regards, Rainer
2008/5/14 Rainer Thaden
Hi,
bjam release debug threading=multi --toolset=msvc stage
add link=static
you could also use the bjam option --build-type=complete which worked pretty good for me using vs studio express 2008. With that option all possible dll's and static libraries should be built.
Rainier: Following yours advice I used the option --build-type=complete It work!! Thank you very much. By the way. It would be a good idea to include those advices in the man page Getting Started on Microsoft Windows :-) Thanks again. Adolfo.
Adolfo Jimenez wrote:
2008/5/14 Rainer Thaden
mailto:RThaden@web.de>: Hi,
> bjam release debug threading=multi --toolset=msvc stage
add link=static
you could also use the bjam option --build-type=complete which worked pretty good for me using vs studio express 2008. With that option all possible dll's and static libraries should be built.
Rainier:
Following yours advice I used the option
--build-type=complete
It work!! Thank you very much.
By the way. It would be a good idea to include those advices in the man page Getting Started on Microsoft Windows :-)
Thanks again.
Just as an aside, 95% of date-time can be used without a library, so it's quite possible you didn't need to build/link the library at all. Jeff
participants (3)
-
Adolfo Jimenez
-
Jeff Garland
-
Rainer Thaden