Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] Compiler error/missing entry point?
From: Michael Spece Ibanez (drenami_at_[hidden])
Date: 2009-08-17 16:54:27


The program (source below) compiles without warning or error using:

g++ -Wall -ansi -pedantic -I/usr/local/include/boost_1_39_0
TestExample.cc -o TestExample -static -L~/stage/lib/
-lboost_unit_test_framework-gcc34-mt-1_39

But then running the program results in an error: a segmentation fault
or undefined reference to
boost::unit_test::framework::master_test_suite(). How do I fix this?

Source of TestExample.cc:

#define BOOST_TEST_MODULE ExampleTestModule
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE( my_test )
{
  BOOST_CHECK(1);
}

Thanks,
Michael


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net