Hi Andreas,

* Andreas Volz wrote on Sun, May 14, 2006 at 08:24:24PM CEST:
> 
> /bin/sh ../libtool --mode=link i386-mingw32msvc-gcc  -Wall -pedantic
> -Werror  -L/opt/xmingw/i386-mingw32msvc/lib -o libglut.la
> -rpath /opt/xmingw/i386-mingw32msvc/lib -version-info 11:0:8
> ...
> libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo -lm
> -lopengl32 -lglu32 -lwinmm -lgdi32 rm
> -fr .libs/libglut.la .libs/libglut.* .libs/libglut.*
> 
> Here is my la-file for FreeGLUT:
> 
> (temporary called libglut.a; better would be libfreeglut.a)
> 
> ...
> # The name of the static archive.
> old_library='libglut.a'
> 
> # Libraries that this one depends upon.
> dependency_libs=' -L/opt/xmingw/i386-mingw32msvc/lib -lm -lopengl32
> -lglu32 -lwinmm -lgdi32'
> ...
> 
> But if I link a test application (configure) it fails:
> 
> configure:16511: i386-mingw32msvc-gcc -o conftest.exe -g -O2
> -I/opt/xmingw/i386-mingw32msvc/include -L/opt/
> xmingw/i386-mingw32msvc/lib conftest.c -lglut -lglu32 -lopengl32  -lm
> >&5 
> >/opt/xmingw/i386-mingw32msvc/lib/libglut.a(libglut_la-freeglut_main.o)(.text+0x40e):freeglut_main.c:
> >undefin ed reference to [EMAIL PROTECTED]'
*snip*

> This are exact the functiosn from the missing libwinmm and libgdi32 
> functions.

I have a vague deja vu feeling here.  Which libtool version are you
using?  Which of the libraries are static, import libraries, or shared?
(Is this on Debian, with the libwinmm from the mingw32-runtime package?
That one is an import library)

I may have forgotten to finish/apply some fix here; need to go check...

Cheers,
Ralf


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to