|
|
gcc -o simple simpro.cpp 'pkg-config--libs --cflags libgtk2.0-dev' |
gcc: pkg-config--libs --cflags libgtk2.0-dev: No such file or directory simpro.cpp:1:21: error: gtk/gtk.h: No such file or directory simpro.cpp: In function ‘int main(int, char**)’: simpro.cpp:6: error: ‘GtkWidget’ was not declared in this scope simpro.cpp:6: error: ‘window’ was not declared in this scope simpro.cpp:8: error: ‘gtk_init’ was not declared in this scope simpro.cpp:10: error: ‘GTK_WINDOW_TOPLEVEL’ was not declared in this scope simpro.cpp:10: error: ‘gtk_window_new’ was not declared in this scope simpro.cpp:11: error: ‘gtk_widget_show’ was not declared in this scope simpro.cpp:13: error: ‘gtk_main’ was not declared in this scope |
g++ -Wall -o simple simpro.cpp `pkg-config --libs --cflags gtk+-2.0`
fix added the s to cflag |
-desktop:~/GTK/gtkmm/examples$ g++ -Wall -o simple simplegtk.cpp `pkg-config --libs --cflag gtk+-2.0` --cflag: unknown option simplegtk.cpp:1:19: error: gtkmm.h: No such file or directory simplegtk.cpp:3: error: ‘Gtk’ has not been declared simplegtk.cpp:3: error: expected constructor, destructor, or type conversion before ‘kit’ simplegtk.cpp:5: error: ‘Gtk’ has not been declared simplegtk.cpp:5: error: expected constructor, destructor, or type conversion before ‘window’ simplegtk.cpp:7: error: ‘Gtk’ has not been declared simplegtk.cpp:7: error: expected constructor, destructor, or type conversion before ‘(’ token |