Find the answer to your Linux question:
Results 1 to 3 of 3
i am using UBUNTU....what i write simple multiplication c program and when compiled it i saw the problems like: mul.c:1:18: error: stdio.h: No such file or directory mul.c: In function ...
  1. #1
    Linux User
    Join Date
    Aug 2008
    Location
    Trichy,India
    Posts
    308

    compilation problem

    i am using UBUNTU....what i write simple multiplication c program and when compiled it i saw the problems like:
    mul.c:1:18: error: stdio.h: No such file or directory
    mul.c: In function ‘main’:
    mul.c:8: warning: incompatible implicit declaration of built-in function ‘printf’
    what to do now...i am new to linux...anyone please help me...

  2. #2
    Just Joined!
    Join Date
    Jul 2008
    Posts
    27
    i think stdio.h is a librery of windows.

    Building C programs on Linux - LinuxQuestions.org

  3. #3
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    stdio.h is a header for the input/output part of the C library (to which the printf function belongs). If present on your machine, it will be in /usr/include.

    All these headers form part of the build-essential package which also includes the C compiler (which you obviously have installed). So I think you have probably quoted the header file name wrongly. Your program should include the line
    Code:
    #include <stdio.h>
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

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