Find the answer to your Linux question:
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: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,559
    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 command
    Code:
    zypper install -t pattern devel_C_C++
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    11
    Quote Originally Posted by elija View Post
    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 command
    Code:
    zypper install -t pattern devel_C_C++
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •