
"Jason House"
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