problems using MAKE


Forum: Other Help Topics
Topic: problems using MAKE
started by: kbf

Posted by kbf on Dec. 14 2004,16:17
On my on the hardrived installed DSL latest version I do have problems to use the make to compile anything.

I have the Gcc1.dsl   installiert

the output is like the following:

root@box:/apps/zaptel# make
cc -o gendigits gendigits.c -lm
make: cc: Command not found
make: *** [gendigits] Error 127

Any hints what to look for??

Karl

Posted by clacker on Dec. 14 2004,18:05
kbf,  This is only a guess on my part, but it looks from your output like make is found but cc isn't.  The C compiler is named gcc not cc.  Some makefiles have a section in the front that sets up variables for the makefile.  You want either want to change every cc to a gcc in the Makefile or open the Makefile and change the variable for the compiler to gcc.
Posted by kbf on Dec. 15 2004,14:20
Hi

You were right. In the Makefile there was CC instead of gcc.
After adding a line

CC=gcc

it worked like a charme.

Thanks

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.