help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make not work on some weired Makefile


From: fsshl
Subject: Re: make not work on some weired Makefile
Date: 1 Oct 2005 17:16:13 -0700
User-agent: G2/0.2

Also, 'clean' should not fail if
some files are missing, so prefix every rm call with a '-'.
----------------------
so is that doing

  rm - $(PRO_MACHINE_TYPE)/utilities.o
?
   I relocate this clean part to the end of the program

then call make, I get not good response
---------------------------

# make
cc  -O -c config.c -o/config.o
config.c:13:20: error: stdlib.h: No such file or directory
config.c:14:19: error: stdio.h: No such file or directory
config.c:15:20: error: string.h: No such file or directory
config.c:17: error: syntax error before '*' token
config.c: In function 'usage':
config.c:23: warning: incompatible implicit declaration of built-in
function 'fprintf'
config.c:23: error: 'stderr' undeclared (first use in this
function)
config.c:23: error: (Each undeclared identifier is reported only once
config.c:23: error: for each function it appears in.)
config.c:24: warning: incompatible implicit declaration of built-in
function 'exit'
config.c: In function 'main':
config.c:30: error: 'NULL' undeclared (first use in this function)
config.c:32: error: 'FILE' undeclared (first use in this function)
config.c:32: error: 'config_file' undeclared (first use in this
function)
config.c:55: warning: incompatible implicit declaration of built-in
function 'fprintf'
config.c:55: error: 'stderr' undeclared (first use in this
function)
config.c:56: warning: incompatible implicit declaration of built-in
function 'exit'
config.c:60: error: 'stdout' undeclared (first use in this
function)
config.c:29: warning: return type of 'main' is not 'int'
make: *** [/config.o] Error 1
--------------------------------------
I am in linux ubuntu kernel 2.6.12-9  prerelease gcc4.02
this is a benchmark test program
from
http://www.spec.org/gpc/downloadindex.html

  please help again, charles



reply via email to

[Prev in Thread] Current Thread [Next in Thread]