Page 1 of 1

Can't MAKE HelloWorld

Posted: Sat Dec 27, 2014 9:51 pm
by tonyburrows
I am running CodeLite 5.2
Running on OpenSuSe 13.2 x64
Installed from downloaded rpms
GCC 4.8.1

I tried the first 'getting started' project, a simple HelloWorld. It did not produce an executable, giving the output:

/bin/sh -c 'make -j 2 -e -f Makefile'
----------Building project:[ HelloWorld - Debug ]----------
make[1]: Entering directory `/home/base_home/programming/C/HelloWorld'
make[1]: *** No rule to make target `Debug/HelloWorld_main.o', needed by `Debug/HelloWorld'. Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/base_home/programming/C/HelloWorld'
make: *** [All] Error 2
0 errors, 0 warnings

There seems to be no way around this. If I try make in a console I get the same 'no rule' error, and again trying make -f HelloWorld.mk

What now? As someone who has been teaching Java and Python for years, I feel remarkably stupid at not being able to start solving this.

Tony

Re: Can't MAKE HelloWorld

Posted: Sat Dec 27, 2014 10:11 pm
by eranif
Why not using a more recent version of codelite? 5.2 is quite, on our download page you can get codelite 6.1 for OpenSUSE
Eran

Re: Can't MAKE HelloWorld

Posted: Sun Dec 28, 2014 12:57 am
by DavidGH
Hi,

Also, in openSUSE the 'gcc-c++' package (and in a kde install also the 'make' package) is/are not installed by default. This will prevent any C++ makefile-based program from building.

Regards,

David

Re: Can't MAKE HelloWorld

Posted: Sun Dec 28, 2014 7:34 pm
by tonyburrows
I had The recent gcc 4.8, make and cmake installed (I had been using a manual toolchain). I've installed CodeLite 6.1 and it all works now.

I had tried v6.1 earlier, only to find it would not run. I've since realised that I had tried to install an rpm for SuSE 13.2 when I was still on 13.1. It failed to run. Whether there is a significant difference or the download got corrupted I could not say.

Thanks for your help. Now to learn C!

Tony