This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking problem on windows under cygwin


I am at work now and have access to my windows system so I
thought I would try to provide more information related to the error.
the expansion of GTk_LIBS is:

GTK_LIBS = -Lc:/GTK/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2
.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -
lintl -liconv

and here is the link line:

        $(LINK) $(am_libgtkjni_la_rpath) $(libgtkjni_la_LDFLAGS) $(libgtkjni_la_
OBJECTS) $(libgtkjni_la_LIBADD) $(LIBS)


On Tue, 22 Feb 2005 18:43:29 -0500, Jeffrey Morgan <kuzman@gmail.com> wrote:
> 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
> 
> 


-- 
Jeffrey Morgan

"The highest reward for a man's toil is not
what he gets for it, but what he becomes by it"
    - Jon Ruskin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]