• [^] # Re: include path

    Posté par . En réponse au message Compiler un programme gtk2 sur mandriva. Évalué à 2.

    Decidemment c'est la croix et la banniere ce truc....


    [tsubasa@localhost esportpanel2]$ gcc -o test test.c -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    /home/tsubasa/tmp/ccL3tRxr.o: In function `main':
    test.c:(.text+0x29): undefined reference to `gtk_init'
    test.c:(.text+0x36): undefined reference to `gtk_window_new'
    test.c:(.text+0x41): undefined reference to `gtk_window_get_type'
    test.c:(.text+0x4e): undefined reference to `g_type_check_instance_cast'
    test.c:(.text+0x5c): undefined reference to `gtk_window_set_position'
    test.c:(.text+0x64): undefined reference to `gtk_window_get_type'
    test.c:(.text+0x71): undefined reference to `g_type_check_instance_cast'
    test.c:(.text+0x87): undefined reference to `gtk_window_set_default_size'
    test.c:(.text+0x8f): undefined reference to `gtk_window_get_type'
    test.c:(.text+0x9c): undefined reference to `g_type_check_instance_cast'
    test.c:(.text+0xad): undefined reference to `gtk_window_set_title'
    test.c:(.text+0xc3): undefined reference to `g_type_check_instance_cast'
    test.c:(.text+0xdb): undefined reference to `g_signal_connect_data'
    test.c:(.text+0xe9): undefined reference to `gtk_widget_show'
    test.c:(.text+0xf1): undefined reference to `gtk_main'
    /home/tsubasa/tmp/ccL3tRxr.o: In function `OnDestroy':
    test.c:(.text+0x106): undefined reference to `gtk_main_quit'
    collect2: ld returned 1 exit status


    Si quelqu'un a une idée je suis preneur ..