Fehler bei Kompilern eines Programmes
-
hier habe ich nochmal was :
werner@linux:~/code> gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containinggtk+-2.0.pc' to the PKG\_CONFIG\_PATH environment variable No package 'gtk+-2.0' found base.c:1:21: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden base.c: In function
main':
base.c:6: error:GtkWidget' undeclared (first use in this function) base.c:6: error: (Each undeclared identifier is reported only once base.c:6: error: for each function it appears in.) base.c:6: error:
window' undeclared (first use in this function)
base.c:10: error:GTK\_WINDOW\_TOPLEVEL' undeclared (first use in this function) werner@linux:~/code> gcc base.c -o base \
pkg-config --cflags --libs gtk+-2.0.pc`
Failed to open 'gtk+-2.0.pc': No such file or directory
No package 'gtk+-2.0.pc' found
base.c:1:21: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden
base.c: In functionmain': base.c:6: error:
GtkWidget' undeclared (first use in this function)
base.c:6: error: (Each undeclared identifier is reported only once
base.c:6: error: for each function it appears in.)
base.c:6: error:window' undeclared (first use in this function) base.c:10: error:
GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
werner@linux:~/code>
-
Hast du GTK denn schon installiert??
Wenn nein, dann must du das natürlich nach holen, den Link hat dir elise schon gegeben.mfg.
-
Gibt es nicht anderes ausser GTK?
-
poroblem schrieb:
Gibt es nicht anderes ausser GTK?
Ja. Unter WIndows gibt's die WinAPI und unter Linux noch Qt (glaub ich, kenn mich in Linux nicht so aus).
mfg.
-
Achja, qt ... das ist ja plattforunabhängig. Hat jemand was dazu?
-
poroblem schrieb:
Achja, qt ... das ist ja plattforunabhängig. Hat jemand was dazu?
gtk auch.
mfg.
-
Ich will´s mit QT machen.
-
oder lerne, besser abzuschreiben und anführungszeichen richtig zu setzen
-
da ich ja auch suse habe, folgte ich nur diesem tutorial http://www.lcs-chemie.de/qtdesigner.htm
Aber schon trat mein erstes problem auf
nämlich:
Bei SuSE 8.1iegt der qt-Designer als designer im Verzeichnis /usr/lib/qt3/bin.
Nur bei mir ist dort nur so ein Zahnrad der qtconfig heißt. Wenn ich da draufklicke öffnet sich ein fenster, wo links ein text steht:Appearance
Use this tab to customize the appearance of your Qt applications.
You can select the default GUI Style from the drop down list and customize the colors.
Any GUI Style plugins in your plugin path will automatically be added to the list of built-in Qt styles. (See the Library Paths tab for information on adding new plugin paths.)
When you choose 3-D Effects and Background colors, the Qt Configuration program will automatically generate a palette for you. To customize colors further, press the Tune Palette button to open the advanced palette editor.
The Preview Window shows what the selected Style and colors look like.oben ist so ein auswahöfenster und unten ein fenster das man einbisschen verändern kann. Toll, es sieht aber überhaupt nicht so aus: http://www.lcs-chemie.de/bilder/qtdesigner.jpg ... ind der menüleiste gibt es nur File: Save/exit und Help: About Qt ........ das wars mehr ist da nicht. kann mir bitttttteeeeee wer helfen?
Ich ahe auf die ganze scheiße langsam immer weniger lust ... erst geht dies nicht dan gibt es das nicht
*heul*
-
ich rate immernoch zu richtigen anführungsstrichen.
dann klappts auch mit der "sch.."