Find the answer to your Linux question:
Results 1 to 2 of 2
Hi folks i tried compiling a basic program in gcc it generated the following errors Code: preeth@debian:~$ gcc Cprog/test.c Cprog/test.c:1:19: error: stdio.h: No such file or directory Cprog/test.c: In function ...
  1. #1
    Linux Newbie reiko's Avatar
    Join Date
    Aug 2007
    Location
    Chennai, India
    Posts
    105

    Compile error

    Hi folks i tried compiling a basic program in gcc it generated the following errors
    Code:
    preeth@debian:~$ gcc Cprog/test.c
    Cprog/test.c:1:19: error: stdio.h: No such file or directory
    Cprog/test.c: In function ‘main’:
    Cprog/test.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
    my test.c content is
    Code:
    #include <stdio.h>
    
    int main()
    {
            printf("This is a test program");
             return 0;
    }
    Pls help to get rid of this error.......

  2. #2
    Linux Newbie reiko's Avatar
    Join Date
    Aug 2007
    Location
    Chennai, India
    Posts
    105
    Well ppl i got the solution
    Code:
    #apt-get install build-essential
    and now my c programs are getting compiled perfectly.

Posting Permissions

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