|
Boost Users : |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-09-05 04:34:29
"Jason House" <jasonhouse_at_[hidden]> wrote in message
news:edikhr$t5l$1_at_sea.gmane.org...
> Jason House wrote:
>> As I currently understand boost.test, it provides its own main function.
>> If I want to make a separate executable to run the tests, that seems
>> straight forward. But how would I embed the testing inside a normal
>> program with a simple command-line switch for running them?
>
> It seems that no matter what I do, I keep getting a linking error with
> my latest attempt to get this to work:
> /usr/local/lib/libboost_unit_test_framework.so:
> undefined reference to `init_unit_test_suite(int, char**)'
I am not sure what's going on. Try what I recomended in other post. Make
sure main.o (or whatever it's named) contains init_unit_test_suite (using
nm++ or similar). If it still failing try to write standalone example with
Boost.Test calls only and post it here.
Gennadiy
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