Just can't get started with boost testing framework

Hi guys, I'm new to using Boost, and I'm hitting my head against what I'm pretty sure is a linking / inclusion problem. I'm trying to use the library to test code I'm writing, but I don't want to have to install the libraries onto the machine I'm compiling on (I just want a way I can have them in my code directory and include them from there). I've tried using both the unit_test_framework.hpp inclusion method, as well as linking against the built binary library, but I essentially keep hitting this problem :
g++ unit_test_example1.cpp unit_test_example1.cpp:10:55: error: boost/test/included/unit_test_framework.hpp: No such file or directory
the only line in unit_test_example1.cpp is :
#include

g++ unit_test_example1.cpp
Didn't you forget here something? Like for example: -I $(BOOST_HOME)
unit_test_example1.cpp:10:55: error: boost/test/included/unit_test_framework.hpp: No such file or directory
This file should be present in boost installation. Gennadiy

Dave Harrison Sent: May 24, 2005 3:43 AM To: boost-users@lists.boost.org Subject: [Boost-users] Just can't get started with boost testing framework
I've tried using both the unit_test_framework.hpp inclusion method, as well as linking against the built binary library, but I essentially keep hitting this problem :
g++ unit_test_example1.cpp unit_test_example1.cpp:10:55: error: boost/test/included/unit_test_framework.hpp: No such file or directory
the only line in unit_test_example1.cpp is :
#include
In my code dir I've copied across the boost/test dir from the unzipped tar ball.
Have you tried g++ -I. unit_test_example1.cpp This assumes there is a folder called boost in the same folder that unit_test_example1.cpp is in. Oliver
participants (3)
-
Dave Harrison
-
Gennadiy Rozental
-
Oliver Schoenborn