Boost logo

Boost-Build :

Subject: [Boost-build] Problem building boost-log file
From: Maurice Tadros (maurice_at_[hidden])
Date: 2010-10-04 01:38:41


I am having a hard time getting to install correctly. The system is windows xp and I'm using visual studios 2005.

1) I have installed boost 1.44 in the default "c:\Program FIles\boost" directory using boost pro and can get other boost headers to work.
2) I then downloaded boost-log-1.0 and extracted it in "c:\Program Files\boost\boost_1_44" directory.
3) bjam was then downloaded in the same directory.
4) Using both cmd, and visual studios command line in the directory above i ran the following command.
bjam --with-log variant=release define=BOOST_LOG_USE_CHAR define=BOOST_LOG_USE_WINNT6_API stage

I then try the trivial example listed on the site and I get the errors.

1>------ Rebuild All started: Project: log, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'log', configuration 'Debug|Win32'
1>c:\program files\boost\boost_1_44\boost\log\sources\global_logger_storage.hpp(136) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(366) : see declaration of 'sprintf'
1> c:\program files\boost\boost_1_44\boost\log\sources\global_logger_storage.hpp(122) : while compiling class template member function 'void boost::log_mt_nt5::sources::aux::logger_singleton<TagT>::init_instance(void)'
1> with
1> [
1> TagT=boost::log_mt_nt5::trivial::logger
1> ]
1> c:\program files\boost\boost_1_44\boost\log\trivial.hpp(100) : see reference to class template instantiation 'boost::log_mt_nt5::sources::aux::logger_singleton<TagT>' being compiled
1> with
1> [
1> TagT=boost::log_mt_nt5::trivial::logger
1> ]
1>Generating Code...
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>LINK : fatal error LNK1104: cannot open file 'libboost_log-vc90-mt-gd-1_44.lib'
1>Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2008\Projects\log\Debug\BuildLog.htm"
1>log - 1 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I looked and do not have a copy of libboost_log-vc90-mt-gd-1_44.lib anywhere on my hard drive.

My questions are:
How do I compile this?
Is this the correct place to post this question? or should I post it somewhere else?
Any other suggestions would be great.

Thanks in advance,

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at