Results 1 to 5 of 5
Hello, I'm using Slackware 12.1. When I try to compile simple 'hello world' app with gcc I get error message:
"stdio.h : No such file or directory..."
I guess thath ...
- 08-22-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 5
c/c++ include files
Hello, I'm using Slackware 12.1. When I try to compile simple 'hello world' app with gcc I get error message:
"stdio.h : No such file or directory..."
I guess thath I need to set something in envoirment variables, but I'm not sure what.Thanks in advance for help.
ps. there are all needed packages.
- 08-22-2008 #2
Could you show us your compile line i.e. gcc test.c -o test
and does the stdio.h file exist on your machine?
- 08-23-2008 #3Just Joined!
- Join Date
- Aug 2008
- Posts
- 5
ofcourse, there is everything I need to compile that program, but I suppose I need to specify path to 'includes' folder or something like that.
Here's my output:
Code:#gcc main.c main.c:1:19: error: stdio.h: No such file or directory main.c: In function 'main': main.c:5: warning: incompatible implict declaration of built-in function 'printf'
Thath is hello world, so there is no option of wrong source code. It's all because compiler can't find header file stdio.h. And ofcourse there's same problem with any basic library.
- 08-25-2008 #4
Are you sure that have the headers installed? What does this command say:
?Code:ls /usr/include/stdio.h
DISTRO=Arch
Registered Linux User #388732
- 08-25-2008 #5Registered Linux user #270181
TechieMoe's Tech Rants


Reply With Quote
