Results 1 to 3 of 3
I installed gcc using YaST2 and thought all was honky dory. However, I can't compile and c-files. When I try to compile in bash I get.
hello.c:1:20: fatal error: stdio.h: ...
- 01-28-2012 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 11
gcc issue, can't compile...
I installed gcc using YaST2 and thought all was honky dory. However, I can't compile and c-files. When I try to compile in bash I get.
hello.c:1:20: fatal error: stdio.h: File doesn't exist.
compilation terminated.
which gcc gives:
/usr/bin/gcc
I'm not used to compile stuff in the terminal..? If anyone could help me or point me in the right direction.
- 01-29-2012 #2
It looks like you haven't got the header files installed.
To install a development environment in openSUSE (in 11.n anyway) you would open the Yast software installer and change the filter to patterns and then selecting and installing the C/C++ development pattern. You could do the same from the command line using the commandCode:zypper install -t pattern devel_C_C++
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 01-29-2012 #3Just Joined!
- Join Date
- Jun 2011
- Posts
- 11
Hi and thanks!
I'm not sure o what I did wrong, but I have a hunch that it has something to do with the fact that I was under the influence of some alcoholic beverages. I tried a hello world today and it worked like a charm.
Patterns you say, I'm not sure I should tinker further, but I checked some c/c++ package. Now YaST is dl:ing loads of stuff. Hope it comes in handy.


Reply With Quote
