Page 1 of 1

errors on Hello World

Posted: Thu Mar 12, 2015 3:55 am
by DoctorDavid
Hi, sorry to be a noob, but here is my issue. Running Debian Wheezy (stable), installed Codelite 7.0, compiler is
Cross GCC - i586-mingw32msvc
tried the Hello World example, and at first it gave me error:
/bin/sh make not found
so I did apt-get install make
next try and not same error, this time:
run-detectors: unable to find an interpreter
Tried searching this forum and google, not much clue, so wonder if any ideas to try... THANKS!

Re: errors on Hello World

Posted: Thu Mar 12, 2015 10:03 am
by eranif
did you install build tools?
make not found means that you don't make installed...

Eran

Re: errors on Hello World

Posted: Thu Mar 12, 2015 1:41 pm
by DavidGH
Hi,
did you install build tools?
To clarify, that means to do, as root: apt-get install build-essential

Regards,

David

Re: errors on Hello World

Posted: Fri Mar 13, 2015 3:16 am
by DoctorDavid
Thanks to both of you for replying, I had not even known of the additional package, but after installing it, I am getting same error with my HelloWorld program. Should I uninstall everything and start over? If so, what is the proper order for installing packages? I've just used apt-get install for all this so far... Thanks for considering my issue.

Re: errors on Hello World

Posted: Fri Mar 13, 2015 1:45 pm
by DavidGH
If so, what is the proper order for installing packages? I've just used apt-get install for all this so far
There's no proper order; apt will insist on installing any necessary dependencies of each package anyway. And 'apt-get install' is the standard way to do this, though some people prefer to access it via a front-end e.g. synaptic.

However I just re-read your original post more carefully:
compiler is Cross GCC - i586-mingw32msvc
I suspect that's the cause of the problem. What are you trying to do? You didn't mention that you were trying to cross-compile; are you? If so, on what platform are you testing your Hello World program?

If you're not cross-compiling, you should instead be using gcc (g++) as your compiler.

Re: errors on Hello World

Posted: Fri Mar 13, 2015 5:31 pm
by DoctorDavid
DavidGH, thanks for input. Yes I am using old laptop with Debian Wheezy, for programming and running the generated programs. But yes, I was trying to allow cross-platform flexibility, but maybe I should start over without trying that; it seems to add too much complexity for a beginner! I did get codelite on my Win 8.1 laptop to compile HelloWorld and it runs ok.