Hi,
I tried executing a C++ project using Eclipse on WindowsXP after installing CppUnit, but when I type 'make' in MinGW32 it gives me the following error:
-ld not found
Please help. I am also pasting the Makefile:
CPPUNIT_PATH=/opt/cppunit
ftest: ftest.o fractiontest.o Fraction.o gcc -o ftest ftest.o fractiontest.o Fraction.o -L${CPPUNIT_PATH}/lib -lstdc++ -lcppunit -ldl
Fraction.o: Fraction.cc Fraction.h gcc -c Fraction.cc
fractiontest.o: fractiontest.cc gcc -c fractiontest.cc -I${CPPUNIT_PATH}/include
ftest.o: ftest.cc gcc -c ftest.cc -I${CPPUNIT_PATH}/include
clean: rm -f *.o ftest
P.S.: I know that my installation path is correct.
Log in to post a comment.
Hi,
I tried executing a C++ project using Eclipse on WindowsXP after installing CppUnit, but when I type 'make' in MinGW32 it gives me the following error:
-ld not found
Please help. I am also pasting the Makefile:
CPPUNIT_PATH=/opt/cppunit
ftest: ftest.o fractiontest.o Fraction.o
gcc -o ftest ftest.o fractiontest.o Fraction.o -L${CPPUNIT_PATH}/lib -lstdc++ -lcppunit -ldl
Fraction.o: Fraction.cc Fraction.h
gcc -c Fraction.cc
fractiontest.o: fractiontest.cc
gcc -c fractiontest.cc -I${CPPUNIT_PATH}/include
ftest.o: ftest.cc
gcc -c ftest.cc -I${CPPUNIT_PATH}/include
clean:
rm -f *.o ftest
P.S.: I know that my installation path is correct.