Error building default unit test project in codelite 5.1

General questions regarding the usage of CodeLite
mikey
CodeLite Enthusiast
Posts: 24
Joined: Thu Apr 18, 2013 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Error building default unit test project in codelite 5.1

Post by mikey »

Using Ubuntu QQ - Built default unit test project - cannot build :
Get this error:
..../main.cpp:1:24: fatal error: UnitTest++.h: No such file or directory


codelite by default set include and library paths, but they are not working.

Do I have to install the unit test modules? Where do I get the ones codelite uses?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error building default unit test project in codelite 5.1

Post by eranif »

You need to install UnitTest++

On ubuntu its easy:

Code: Select all

sudo apt-get install libunittest++-dev
This will give you the latest headers/lib you need for UnitTest++


Eran
Make sure you have read the HOW TO POST thread
mikey
CodeLite Enthusiast
Posts: 24
Joined: Thu Apr 18, 2013 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error building default unit test project in codelite 5.1

Post by mikey »

OK - yes that was easy. But I did have to add '/usr/include/unittest++' to the compiler includes. Also found the help html for unittest++. Thanks.

Suggestion: I don't think the wizards should let you create projects for tools that aren't installed - it's rather confusing - and if they are installed, they should append the approprite includes.

Wish I could help with this but I'm not up to speed in C++ - haven't used it in 10 years. That' why I installed codelite. I did make a contrbution though and intend to make more - I really enjoy codelite and i want to keep it alive. I introduced a few people to it on stackoverflow.com too (that's where I heard about it) - they liked it too. I told them to send money to keep the project alive. codelite is better than codeblocks ever was. codelite is filling a badly needly hole in the open source world - a good, lite, clean, generic C++ IDE.

Thanks
MN
Post Reply