Boost logo

Boost-Build :

From: andrew mitchell (a.mitchell_at_[hidden])
Date: 2008-01-23 03:42:45


I'm getting some compiler warnings using MSVC 8 on Windows XP that seem
worth reporting, some are just noise but some may be significant.

I'm using boost-jam-3.1.16-1-ntx86 with this command line:
bjam.exe --build-dir="<my build dir>" --toolset=msvc stage

If these are "old hat" perhaps someone could let me know so I don't need
to worry about them any more.

Items:

1. Some apparently genuine compiler warnings:

libs\iostreams\src\file_descriptor.cpp(198) : warning C4293: '<<' :
shift count negative or too big, undefined behavior

libs\regex\src\..\src\cregex.cpp(563) : warning C4309: 'static_cast' :
truncation of constant value

2. ISO conformance warnings:

libs\iostreams\src\file_descriptor.cpp(227) : warning C4996: 'lseek':
The POSIX name for this item is deprecated. Instead, use the ISO C++
conformant name: _lseek. See online help for details.

3. dll-interface warnings -- I assume that this means the boost dynamic
link libraries I've built will lack exported symbols.

.\boost/iostreams/device/file_descriptor.hpp(97) : warning C4251:
'boost::iostreams::file_descriptor::pimpl_' : class
'boost::shared_ptr<T>' needs to have dll-interface to be used by clients
of class 'boost::iostreams::file_descriptor'

.\boost/program_options/errors.hpp(21) : warning C4275: non
dll-interface class 'std::logic_error' used as base for dll-interface
class 'boost::program_options::error'

4. Lots of "noise" relating to use of printf-family functions which MS
suggest should be replaced with calls to their own "secure" C I/O
library. This can be turned off of course, I just don't know how to do
that while remaining within the standard boost build process.

.\boost/wave/cpplexer/re2clex/cpp_re2c_lexer.hpp(303) : warning C4996:
'vsprintf': This function or variable may be unsafe. Consider using
vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.

Andrew Mitchell
a dot mitchell at thermoteknix dot com


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk