Re: [Cppunit-devel] getting started with cppunit
Brought to you by:
blep
From: Steve M. R. <ste...@vi...> - 2002-09-17 05:54:12
|
On Thu, Sep 12, 2002 at 08:42:59AM +0200, Richard Uhlmann wrote: > Hi, > I am new with cppunit, but when I try out the very > first example from the cookbook, the linker exits with errors. > > I think, the package is well installed on my linux machine > within: /usr/local/stow/cppunit-1.8.0 > I added /usr/local/stow/cppunit-1.8.0/include to PATH > I copied libcppunit.a to my working dir: ~cppunit > > I created the file complex.cpp, tried to compile with: > g++ libcppunit.a complex.cpp > and got the errors at the end of the message > can you help me or give me a working example? You forgot to link against the library. Append "-L /usr/local/stow/cppunit-1.8.0/lib -lcppunit" or similar to your build command. -S |