Hi I'm trying to compile a C program on Unix, but when I run in shell the makefile (command make) it gives these errors: stdio.h: No such file or directory stdlib.h: No such file or directory math.h: No such file or directory time.h: No such file or directory X11/Xlib.h: No such file or directory X11/Xutil.h: No such file or directory In program's Readme file it says just to run the makefile and it will compile. Is it my host missing some files or something I do wrong? Thanks for advising!
Without knowing more, two issues come to mind. Make sure the paths in the makefile are correct and that you have enough authority on the computer to compile programs. Remember, Linux imposes roles on users and you may need to be root to make this work. And, not all distros use the same path scheme.
siraxi, you probably don't have the files on your computer (they are usually located in /usr/include). Read here for details: http://www.linux.com/howtos/Glibc2-HOWTO.shtml
run this command to see if you have the standard header files: find / -name "stdio.h" 2>/dev/null Code (markup): If you don't find anything, you don't have them. If you locate them, note what directory they are in and then edit the makefile. Without seeing the makefile, I can't tell you where to add them. Most makefiles will have a variable called $(INCLUDES) or something similar. Add the path to that field. good luck. g