New to programming, I want to use cppunit with XCode. What do I have to do?
Name:
Anonymous2012-02-05 22:57
What compiler are you using?
Name:
Anonymous2012-02-05 23:06
g++
Name:
Anonymous2012-02-05 23:28
Was that not the right answer?
Name:
Anonymous2012-02-06 2:05
Oh okay well you need to link the cppunit files to your project. Honestly, Bloodshed Dev c++ uses g++. If you are on a windows box I recommend that you try it out so you can see how it uses g++. Or just rtfm.
Name:
Anonymous2012-02-06 2:16
Point_test.cpp:1:33: error: cppunit/TestFixture.h: No such file or directory
Point_test.cpp:2:36: error: cppunit/TextTestRunner.h: No such file or directory
Point_test.cpp:3:45: error: cppunit/extensions/HelperMacros.h: No such file or directory
I #included the files it says don't exist, and I know they exist because I just installed cppunit. What am I doing wrong?
Name:
Anonymous2012-02-06 2:19
-I<relative directory with headers>
Name:
Anonymous2012-02-06 2:45
You need to put the fulll path of those files... When you just put the name it is assuming that it is in your current directiry so of course it isnt there.
░░░░░░░▄▀▀▀▀▀▀▀▀▀▀▄▄░░░░░░░░░
░░░░▄▀▀░░░░░░░░░░░░░▀▄░░░░░░░
░░▄▀░░░░░░░░░░░░░░░░░░▀▄░░░░░ YOU HAVE BEEN VISITED BY
░░█░░░░░░░░░░░░░░░░░░░░░▀▄░░░ LE 'FEEL OF NO GF
░▐▌░░░░░░░░▄▄▄▄▄▄▄░░░░░░░▐▌░░
░█░░░░░░░░░░░▄▄▄▄░░▀▀▀▀▀░░█░░ A qt 3.14 gf will come to you,
▐▌░░░░░░░▀▀▀▀░░░░░▀▀▀▀▀░░░▐▌░ but ONLY if you post a
█░░░░░░░░░▄▄▀▀▀▀▀░░░░▀▀▀▀▄░█░ `>tfw no GF on this thread
█░░░░░░░░░░░░░░░░▀░░░▐░░░░░▐▌
▐▌░░░░░░░░░▐██▀█▄░░░░░░█▀█░▐▌
░█░░░░░░░░░░░▀▀▀░░░░░░▀▀▀▀░▀▄
░▐▌░░░░▄░░░░░░░░░░░░░▌░░░░░░█
░░▐▌░░▐░░░░░░░░░░░░░░▀▄░░░░░█
░░░█░░░▌░░░░░░░░▐▀░░░░▄▀░░░▐▌
░░░▐▌░░▀▄░░░░░░░░▀░▀░▀▀░░░▄▀░
░░░▐▌░░▐▀▄░░░░░░░░░░░░░░░░█░░
░░░▐▌░░░▌░▀▄░░░░▀▀▀▀▀▀░░░█░░░
░░░█░░░▀░░░░▀▄░░░░░░░░░░▄▀░░░
░░▐▌░░░░░░░░░░▀▄░░░░░░▄▀░░░░░
░▄▀░░░▄▀░░░░░░░░▀▀▀▀█▀░░░░░░░