|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2003-10-28 10:31:16
> I have found autolink excellent, with a few tweaks.
>
> Some warnings would have saved me some head scratching.
>
> #pragma message("Auto_linked with library " BOOST_LIB_NAME ".") -
helpful info
defining BOOST_LIB_DIAGNOSTIC will ouput those kinds of messages: it's not
on by default because they get pretty anoying after a while - remember every
translation unit that includes that header will produce those messages.
> #include <boost/config.hpp> // Ensure BOOST_MSVC is defined.
will do.
>
> #else
> # error "No BOOST_LIB_TOOLSET defined!"
> #endif
>
> #else
> # error ("Missing BOOST_LIB item")
> #endif
>
> #else
> // Might want to warn
> # pragma message ("Auto-link only works for MSVC and Borland!")
> #endif // _MSC_VER || __BORLANDC__
#pragma message is Microsoft/Borland specific, so there's not much point in
trying to use it to warn for other compilers :-(
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk