An error while compiling a C prog says ' error: stdio.h: No such file or directory'..pls help..

Asked by Avinash

i'm tryin to install gammu..in tat when i run the ./configure command it gives the foll:
Wrapper script for configuring CMake for Gammu.

This provides limited compatibility with configure, if you want full
configuration control, use directly CMake. More information about CMake
is available at <http://www.cmake.org>.

-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error: The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
 /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp/testCCompiler.c
/home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp/testCCompiler.c:4:19: error: stdio.h: No such file or directory
/home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp/testCCompiler.c: In function ‘main’:
/home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp/testCCompiler.c:12: warning: incompatible implicit declaration of built-in function ‘printf’
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1
make[1]: Leaving directory `/home/krshna/Desktop/gammu-1.17.90/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2

CMake will not be able to correctly generate this project.
-- Configuring done

PLZZZZZ HELP ME OUT WID THIS..

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Albert Damen
Solved:
Last query:
Last reply:
Revision history for this message
Best Albert Damen (albrt) said :
#1

To compile programs you need to install the package build-essential.
You can do this with Synaptic or from a terminal window:

$ sudo apt-get install build-essential

Revision history for this message
Avinash (avighegde) said :
#2

Thanks albert, that solved my question.