Das einfache c-Programm unter Linux Mint 15 konnte nicht kompiliert werden

Ich bin ein Linux Mint 15 Benutzer.
ich wollte einfach schreiben das Programm in C.
Unten ist mein code.(hw.c)

#include<stdio.h>
#include<conio.h>
int main()
{
    printf("Hello World");
}

Aber, wenn ich versuche zu kompilieren mit gcc

gcc -o hw hw.c

es gibt mir eine Fehlermeldung

hw.c:1:18: fatal error: stdio.h: No such file or directory
compilation terminated.

Habe ich gegoogelt und einige Lösungen gefunden, die sagen, zu installieren build-essential
und versucht es zu installieren

sudo apt-get install build-essintial

aber es gibt eine Fehlermeldung wieder.
Der Fehler ist

    Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:4.4.3) but it is not going to be installed
                   Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Also, was ist falsch? Was ist das problem?
Wie es zu lösen?

PS.
Das Ergebnis locate stdio.h ist

/usr/lib/perl/5.14.2/CORE/nostdio.h
/usr/lib/syslinux/com32/include/stdio.h

InformationsquelleAutor der Frage namco | 2013-10-21

Schreibe einen Kommentar