Topic: Problems building C (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: f(x) |
posted 11-23-2007 00:55
I'm trying to build this: http://kociemba.org/cube.htm code: server:/home/zavaboy/Desktop/Downloads/cube explorer# make gcc -O3 -Wall -c cubiecube.c cubiecube.c:4:20: error: string.h: No such file or directory cubiecube.c:5:19: error: ctype.h: No such file or directory cubiecube.c: In function ?stringToCubieCube?: cubiecube.c:214: warning: implicit declaration of function ?strstr? cubiecube.c:214: warning: incompatible implicit declaration of built-in function ?strstr? cubiecube.c:215: error: ?NULL? undeclared (first use in this function) cubiecube.c:215: error: (Each undeclared identifier is reported only once cubiecube.c:215: error: for each function it appears in.) cubiecube.c:216: warning: implicit declaration of function ?strlen? cubiecube.c:216: warning: incompatible implicit declaration of built-in function ?strlen? cubiecube.c:219: warning: implicit declaration of function ?toupper? make: *** [cubiecube.o] Error 1
|
Maniac (V) Inmate From: there...no..there..... |
posted 11-23-2007 01:11
hmm...did you run ./configure first? |
Paranoid (IV) Inmate From: f(x) |
posted 11-23-2007 04:54 |
Paranoid (IV) Inmate From: Madison, Indiana |
posted 11-23-2007 22:39
code: cubiecube.c:4:20: error: string.h: No such file or directory This errorsays the compiler can't find 'string.h' in you include path. IF you have string.h on your system (for example, in /usr/include) the compiler can't find it. Did you install the standatd c libraties when you installed gcc? cubiecube.c:5:19: error: ctype.h: No such file or directory This error is the same as the one above, just for a different include file. Your compiler can't find ctype.h. cubiecube.c: In function ?stringToCubieCube?: I don't know about this error. It looks as if your code is making a call to a function that should be defined in your code or another file in the code you downloaded from the Rubic's Cube. It's possible you haven't downloaded the other file or the other errors are keeping this function from compiling. Don't worry about this error right now. When you fix the others, this one may go away. IF it doesn't, we'll worry about it when the others are fixed. cubiecube.c:214: warning: implicit declaration of function ?strstr? cubiecube.c:214: warning: incompatible implicit declaration of built-in function ?strstr? These errors are because the compiter was not able to find string.h. See above. cubiecube.c:215: error: ?NULL? undeclared (first use in this function) cubiecube.c:215: error: (Each undeclared identifier is reported only once cubiecube.c:215: error: for each function it appears in.) These errors are because the compiler couldn't find ctype.h. See above. cubiecube.c:216: warning: implicit declaration of function ?strlen? cubiecube.c:216: warning: incompatible implicit declaration of built-in function ?strlen? cubiecube.c:219: warning: implicit declaration of function ?toupper? These errors are because the compiter was not able to find string.h. See above.
|
Paranoid (IV) Inmate From: f(x) |
posted 11-23-2007 23:14 |
Maniac (V) Inmate From: there...no..there..... |
posted 11-23-2007 23:39
quote:
|
Maniac (V) Inmate From: The South Pacific |
posted 11-25-2007 13:08
I usually install all the devel and build packages on any linux system. It adds a bit of bloat, but having the required dependencies for anything is worth it. |