LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   lcc cannot find stddef.h (https://www.linuxquestions.org/questions/linux-software-2/lcc-cannot-find-stddef-h-719978/)

takmark 04-18-2009 12:47 AM

lcc cannot find stddef.h
 
Hello I just installed lcc-4.1-2 RPM in my SUSE 10.3 machine to do some cross-compilation for MIPS using the command

lcc -S -Wf-target=mips/ultrix filename.c -o filename.s

cpp is searching for stddef.h with no success and produces the error message "could not find include file <stddef.h>"

I found stddef.h in the following directories:
/usr/include/linux
/usr/lib/gcc/i586-suse-linux/4.2.1/include

Anu hint how I could make cpp find stddef.h?

Thanks in advance,
Takis

dchmelik 04-18-2009 12:51 AM

My guess is stddef.h is a library you also need to give lcc a switch to. For example, when I try to use the curses library with gcc, I have to type 'gcc -lncurses program.C' Check the stddef.h docs. Or is it a much more standard library than curses? If so, I am unsure what to do; I have not used lcc much....


All times are GMT -5. The time now is 04:42 AM.