Re: [gnome-db] GDA Win32 Build
- From: Dru <andru treshna com>
- To: Daniel Morgan <danielmorgan verizon net>
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] GDA Win32 Build
- Date: Tue, 28 Sep 2004 15:32:06 +1200
Daniel Morgan wrote:
Some people were talking about a GDA Win32 build here?
I'm interested. I and others have tried. Gonzalo and others have gotten
mingw to build libgda dlls. However, I don't think they worked for some
reason.
_______________________________________________
gnome-db-list mailing list
gnome-db-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-db-list
A useful links for win32 porting I found that got me over a lot of
initial problems.
http://rooster.stanford.edu/~ben/linux/crosshowto.php
And heres a makefile i used recently to build a win32 library.
SRC=bc.c bcmem.c bcconfig.c bcgarbage.c bcdebug.c
OBJ=bc.o bcmem.o bcconfig.o bcgarbage.o bcdebug.o
OBJ=$(SRC:.c=.o)
DLL=bondcommon.dll
DLLSHORT=bondcommon
CC=i586-mingw32msvc-gcc
WINCC=i586-mingw32msvc-gcc
WINDLL=i586-mingw32msvc-dlltool
CFLAGS=-DWIN32
CFLAGS+=-Wall \
-I/usr/i586-mingw32msvc/include \
-I/home/andru/tmp/winport/lib/glib-2.0/include \
-Iinclude -I/usr/local/include/bond \
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include \
-I/home/andru/tmp/winport/win32api/include
LDFLAGS=-mwindows -mconsole
LFLAGS=-Llib -lglib-2.0 \
-Lbin -lglib-2.0 \
-lmingw32
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
$(DLL): $(OBJ)
$(WINCC) -shared -o $(DLL) $(LDFLAGS) $(SRC) $(LFLAGS) $(CFLAGS)
$(WINDLL) --export-all-symbols -e $(DLLSHORT) -llibbondcommon.a \
$(OBJ)
clean:
$(RM) -f $(OBJ) *~ core *.exe bondcommon.dll libbondcommon.a
bondcommon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]