Linking problem on windows under cygwin

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

 



I am trying to compile part of the java-gnome language bindings called
libgtk-java on Windows.  I am able to compile to library under cygwin
without problems.  When I try to run an example application it loads the
library libgtkjni.dll but fails to load the gtk dll (a lib linked
during compilation).  Both the gtkjni and gtk dlls are in my path and
they are also both included in my java.library.path.  I believe there
might be some magic needed in my makefile to fix this problem but I
don't know what.  My automake entry to build the gtkjni dll is:

libgtkjni_la_CFLAGS = $(GTK_CFLAGS) $(JNI_INCLUDES)
libgtkjni_la_LDFLAGS = $(GTK_LIBS) -no-undefined -release $(gtkapiversion)

GTK_LIBS and GTK_CFLAGS are values coming from pkgconfig.  I
am using the following parameters for autogen:

env CC="gcc -mms-bitfields -mno-cygwin" ./autogen.sh
--host=i386-pc-mingw32 --build=i386-pc-ming32

What am I missing?

Thanks for your help.
-Jeff


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux