Unable to compile Hello World

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

 



Hello.

 

My name is Aitor and I’m new to this list. I have some experience with C programming, but this is the first time I’m trying to do something more appealing than a simple DOS console, for which I hace decided to use GTK+. I’ll try to be as thorough as possible about my problem:

 

The question is: whenever I try to compile the first example in the tutorial (http://library.gnome.org/devel/gtk-tutorial/stable/c39.html) I get the following message:

 

$ gcc base.c –o base `pkg-config –cflags –libs gtk+-2.0`

c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../libmingw32.a(main.o):main.c:(.text+0xd2): referencia a `WinMain@16´ sin definir

Collect2: ld returned 1 exit status

 

I’m using MinGW with Windows Vista. Both \bin\ folders of the MinGW and GTK are registered in the PATH environment variable. When I execute pkg-config by itself it works properly, listing all the libraries. I’ve made myself sure that I’m using the backquote character, but still doesn’t work.

 

Any clues, please?

 

Thanks



__________ Información de ESET Smart Security, versión de la base de firmas de virus 5737 (20101227) __________

ESET Smart Security ha comprobado este mensaje.

http://www.eset.com
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux