hfawzy
08-26-2002, 11:43 AM
i tried to compile a gtk program using this command:
cc `pkg-config --cflags --libs gtk+-2.0` program.c -o program
but it gives me this error:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
any ideas?
Thank you
cc `pkg-config --cflags --libs gtk+-2.0` program.c -o program
but it gives me this error:
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
any ideas?
Thank you