I have used CPPUnit in the past, but on the most recent project I'm working on (on Solaris) I keep getting this error when linking:

Sample/libsampletest.a(SampleTest.o): In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::Rep::move(unsigned int, char const *, unsigned int)':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/std/bastring.h(.CppUnit::TestSuiteFactory<SampleTest>::gnu.linkonce.t.makeTest(void)+0x8): undefined reference to `SampleTest::suite(void)'
collect2: ld returned 1 exit status

I can't for the life of me figure out how to fix this, or why it's happening.  Any ideas?