Re: newb needs help compiling...



Billy, John, Vincent,

Thank you!  That works a lot better.

I'm running into a new problem though.  

Here is my code:

#include <gtk/gtk.h>

int main( int   argc, char *argv[] )
{
    GtkWidget *window;
    
        gtk_init( &argc, &argv );
    
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    
        gtk_widget_show  (window);
    
    gtk_main ();
    
    return 0;
}

Here is my error:

tmp/ccsSROPV.o(.eh_frame+0x11): In function `main':
/home/djoseph/Projects/Lessons/src/main.cc:7: undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status

Line 7 is the gtk_init( &argc, &argv ); line.

Something still missing in what I'm doing?

-Dan Joseph




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]