When I run cxxtest I get this error that I dont underdstand?
Posted
by user299648
on Stack Overflow
See other posts from Stack Overflow
or by user299648
Published on 2010-04-14T06:30:55Z
Indexed on
2010/04/14
6:33 UTC
Read the original article
Hit count: 272
./cxxtest/cxxtestgen.py -o tests.cpp --error-printer DrawTestSuite.h
g++ -I./cxxtest/ -c tests.cpp
g++ -o tests tests.o Color.o
tests.o: In function DrawTestSuite::testLinewidthOne()':
tests.cpp:(.text._ZN13DrawTestSuite16t… undefined reference to
Linewidth::Linewidth(double)'
tests.cpp:(.text._ZN13DrawTestSuite16t… undefined reference to `Linewidth::draw(std::basic_ostream >&)'
collect2: ld returned 1 exit status
make: * [tests] Error 1// DrawTestSuite.h
DrawTestSuite.h contains the unit-test and The test function calls on Linewidth.h to execute the constructer and member function draw I have
include "Linewidth.h"
in DrawTestSuite.h
© Stack Overflow or respective owner