|
Boost : |
From: Paul A. Bristow (boost_at_[hidden])
Date: 2003-11-06 15:03:30
I fear it is rather too involved to post my attempt, since reversed, to use your
new version.
I have hacked into 1.30.2 unit_test.hpp
#include <boost/test/unit_test.hpp> // Enhanced for unit_test framework
autolink,
which now includes
#define BOOST_LIB_NAME "unit_test_library"
#define BOOST_LIB_DIAGNOSTIC "on"// Show library file details.
and
#include <boost/config/auto_link.hpp>
I have just swapped auto_link.hpp for your version (I hope).
Perhaps the best thing is to check each #define in turn. Tedious but clearer.
// Check everything defined OK.
#if !defined(BOOST_LIB_NAME)
# error "BOOST_LIB_NAME not defined for auto_link!"
#elif !defined(BOOST_LIB_PREFIX)
# error "BOOST_LIB_PREFIX not defined for auto_link!"
#elif !defined(BOOST_LIB_TOOLSET)
# error "BOOST_LIB_TOOLSET not defined for auto_link!"
#elif !defined(BOOST_LIB_THREAD_OPT)
# error "BOOST_LIB_THREAD_OPT not defined for auto_link!"
#elif !defined(BOOST_LIB_RT_OPT)
# error "BOOST_LIB_RT_OPT not defined for auto_link!"
#elif !defined(BOOST_LIB_VERSION)
# error "BOOST_LIB_VERSION not defined for auto_link!"
#endif
reveals that
"BOOST_LIB_VERSION not defined for auto_link!"
I can't see this being defined in the auto_link.hpp file.
HTH
Paul
Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
mailto:pbristow_at_[hidden]
| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]]On Behalf Of John Maddock
| Sent: Thursday, November 06, 2003 12:24 PM
| To: Boost mailing list
| Subject: Re: [boost] Draft Tutorial / Guidelines for Authors of
| BoostLibrariesContaining Separate Source
|
|
| > I have been using a slightly hacked version highly conveniently for some
| time,
| > but with your most recent version I get a message:
| >
| > boost_1_30_2\boost\config\auto_link.hpp(265) : fatal error C1189: #error :
| > "some required macros where not defined (internal logic error)."
| >
| > Apart from the minor grammar problem with 'where', I have yet to figure
| what I
| > have done wrong. Is this message telling me that autolink logic is
| faulty, or
| > much more likely, my provision of macro defines? It might be more helpful
| to
| > say which is missing?
|
| Can you post a test case - that indicates a logic error inside the headers
| own code rather than something that you are doing wrong - but I will work on
| better messages.
|
| Thanks,
|
| John
|
| _______________________________________________
| Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
|
|
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk