Boost logo

Boost :

From: jerome.wacongne_at_[hidden]
Date: 2008-01-03 12:11:29


My problem might be a beginner one, but I spent all day searching forums
and mailing archives and it didn't help much, so I am asking at the
The reason why I write this email is that modifying boost source helps but
what I did is not enough.

what I did :
- a first test file using helper macros to test a class (works fine alone)
#include <boost/test/unit_test.hpp>
        BOOST_CHECK(1 == 2-1);

- add a second test file using helper macros to test an other class
(compilation is OK, link KO) :
#include <boost/test/unit_test.hpp>
        BOOST_CHECK(1 != 2);

Here are the errors :
multiple definition of `init_unit_test_suite(int, char**)' line
first defined here line 184

I have edited unit_test_suite.hpp to add inline decalration to
init_unit_test_suite :
inline ::boost::unit_test::test_suite*
init_unit_test_suite( int, char* [] ) {

Doing so, first error is suppressed. I might need to rebuild boost test
lib for the second, but I haven't the tools at workplace.

I am using :
- Windows XP
- MinGW packaged with boost 1.34.1 (
- Eclipse CDT


This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
Overlay AM (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.


Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, Overlay AM (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.

Boost list run by bdawes at, gregod at, cpdaniel at, john at