Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-11-27 15:30:40


"Michael Peterson" <mtp1032_at_[hidden]> wrote in message
news:001101c4d4b8$5d509690$1d02a8c0_at_wxp2000...
> Thanks, Gennadiy and Robert. I may not have provided enough information
> in my original posting. So, I've attached the code that won't link,
> i.e., yields the unresolved reference to test main. You'll see that I'm
> using init_unit_test_suite(). I might add that using test_main() gives
> rise to the same problem.

The problem is that you are trying to link both with Unit Test Framework and
Test Execution Monitor, while you only need only one of them. If you are
using init_unit_test_suite you need to link with former, while if are using
test_main you need to link with later.

> By the way, this compiles and runs just fine on Windows XP. Sigh...

Both components supply main function. This linker select one that refer to
init_unit_test_suite.

> Hope you can help,
>
> Cheers,
>
> Michael

HTH,

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