Re: Instructions for compiling with GTK under win32

2004-02-25 Thread Vincent Torri

> Thanks for your reply. What GTK packages are you using? The ones from Tor 
> Lillqvist, or  Masahiro Sakai's site. I have it compiling fine, but it 
> won't run.

those from Tor (of course...) 

regards

Vincent TORRI

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Instructions for compiling with GTK under win32

2004-02-25 Thread Richard Nairn
Thanks for your reply. What GTK packages are you using? The ones from Tor 
Lillqvist, or  Masahiro Sakai's site. I have it compiling fine, but it 
won't run.

I have it compiled under mingw.

On Wed, 25 Feb 2004 20:08:13 +0100 (MET), Vincent Torri 
<[EMAIL PROTECTED]> wrote:


I have tried various combinations for compiling a test program under
cygwin and MinGW. Can anyone provide me with a recipe for what they did
for a successful compile of of a program using gtk under either
environment?
with mingw, i use autotools, but you can begin by using this Makefile
(replace the name of the files, of course...):
# Makefile

OBJECTS = messages.o menu.o utils_gui.o gems.o

all: gems

CFLAGS = -Wall -O2 `pkg-config --cflags gtk+-2.0`
WINFLAGS =  -mno-cygwin -mpentium -mms-bitfields -mwindows
# compilation
%.o : %.c
gcc -c $(CFLAGS) $(WINFLAGS) $< -o $@
# linking
gems: $(OBJECTS)
$(CC) $(OBJECTS) -o gems `pkg-config --libs gtk+-2.0`
clean:
@rm -f *o gems
messages.o:  messages.h
menu.o:  menu.h
utils_gui.o: menu.o utils_gui.h
gems.o:  utils_gui.o messages.o
# End of Makefile

regards

Vincent TORRI

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


--
|   Richard Nairn  Specializing in Linux
| Nairn Consulting Web / Database Solutions
|Calgary, AB
 | [EMAIL PROTECTED]
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Instructions for compiling with GTK under win32

2004-02-25 Thread Vincent Torri

> I have tried various combinations for compiling a test program under 
> cygwin and MinGW. Can anyone provide me with a recipe for what they did 
> for a successful compile of of a program using gtk under either 
> environment?

with mingw, i use autotools, but you can begin by using this Makefile
(replace the name of the files, of course...): 

# Makefile

OBJECTS = messages.o menu.o utils_gui.o gems.o

all: gems

CFLAGS = -Wall -O2 `pkg-config --cflags gtk+-2.0`
WINFLAGS =  -mno-cygwin -mpentium -mms-bitfields -mwindows

# compilation 
%.o : %.c
gcc -c $(CFLAGS) $(WINFLAGS) $< -o $@

# linking
gems: $(OBJECTS)
$(CC) $(OBJECTS) -o gems `pkg-config --libs gtk+-2.0` 

clean:
@rm -f *o gems

messages.o:  messages.h
menu.o:  menu.h
utils_gui.o: menu.o utils_gui.h
gems.o:  utils_gui.o messages.o

# End of Makefile

regards

Vincent TORRI

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Instructions for compiling with GTK under win32

2004-02-25 Thread Richard Nairn
I have tried various combinations for compiling a test program under 
cygwin and MinGW. Can anyone provide me with a recipe for what they did 
for a successful compile of of a program using gtk under either 
environment?

--
 |   Richard Nairn  Specializing in Linux
 | Nairn Consulting Web / Database Solutions
 |Calgary, AB
 | [EMAIL PROTECTED]
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list