J
Hallo,
leider musste ich alles neu installieren aufgrund der Anforderung das CygWin benutzt werden muss aufgrund noch kommender Anforderungen.
Jetzt habe ich das Problem beim Compilen einer Simplen GTK C++ Hello World
/*
* hello.cpp
*
* Created on: 01.10.2008
* Author: jensa
*/
#include <gtk/gtk.h>
int main(int argc, char **argv)
{
GtkWidget *fenster;
gtk_init(&argc, &argv);
fenster = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_signal_connect(GTK_OBJECT(fenster), "destroy",
GTK_SIGNAL_FUNC(gtk_main_quit),NULL);
gtk_window_set_title(GTK_WINDOW(fenster), "Der Fenstertitel");
gtk_window_set_default_size(GTK_WINDOW(fenster), 400, 200);
gtk_window_set_position(GTK_WINDOW(fenster),GTK_WIN_POS_CENTER);
gtk_widget_show(fenster);
gtk_main();
return 0;
}
das der Output folgender ist:
**** Build of configuration Debug for project hello ****
make all
Building file: ../hello.cpp
Invoking: Cygwin C++ Compiler
g++ -I"C:\GTK\include\gtk-2.0" -O0 -g3 -Wall -mms-bitfields -mno-cygwin -IC:/GTK/include/gtk-2.0 -IC:/GTK/lib/gtk-2.0/include -IC:/GTK/include/atk-1.0 -IC:/GTK/include/cairo -IC:/GTK/include/pango-1.0 -IC:/GTK/include/glib-2.0 -IC:/GTK/lib/glib-2.0/include -IC:/GTK/include/freetype2 -IC:/GTK/include -MMD -MP -MF"hello.d" -MT"hello.d" -o "hello.o" "../hello.cpp"
/cygdrive/c/DOKUME1/jasshaue/LOKALE1/Temp/ccdin8Vt.o: In function main': /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:14: undefined reference to_gtk_init_abi_check'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:16: undefined reference to \_gtk\_window_new' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:18: undefined reference to_gtk_object_get_type'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:18: undefined reference to \_g\_type\_check\_instance_cast' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:18: undefined reference to_gtk_main_quit'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:18: undefined reference to \_gtk\_signal\_connect\_full' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:21: undefined reference to_gtk_window_get_type'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:21: undefined reference to \_g\_type\_check\_instance_cast' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:21: undefined reference to_gtk_window_set_title'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:23: undefined reference to \_gtk\_window\_get\_type' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:23: undefined reference to_g_type_check_instance_cast'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:23: undefined reference to \_gtk\_window\_set\_default_size' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:25: undefined reference to_gtk_window_get_type'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:25: undefined reference to \_g\_type\_check\_instance_cast' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:25: undefined reference to_gtk_window_set_position'
/cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:27: undefined reference to \_gtk\_widget_show' /cygdrive/c/workspace/cpp/hello/Debug/../hello.cpp:29: undefined reference to_gtk_main'
collect2: ld returned 1 exit status
make: *** [hello.o] Error 1
Es scheint ja vom compiler her keine Probleme zu geben sondern scheinbar Probleme beim Linken,
aber leider weiß ich nicht mehr weiter was anders gelinkt werden müsste.
gruß