Paul Deppe

> With the latest PLIB CVS joystick library, I get the following error when
> linking js_demo.exe (Cygwin/Win2k/gcc3.2):
> 
> g++  -O2  -L/usr/local/lib -o js_demo.exe
>  js_demo.o -lplibsl -lplibsm -lwinmm -lplibjs -lplibul -lm
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libplibjs.a(jsWindows.o)(.text+
> 0x36
> 9):jsWindows.cxx: undefined reference to `_joyGetDevCapsA@12'
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libplibjs.a(jsWindows.o)(.text+
> 0x6e
> c):jsWindows.cxx: undefined reference to `_joyGetPosEx@8'
> collect2: ld returned 1 exit status

Try changing the xxx_LDADD lines in Makefile.am to

js_demo_LDADD = -lplibjs -lplibul $(audio_LIBS)
fgjs_LDADD = -lplibjs -lplibul $(audio_LIBS)

Unlike unix link order matters with Windows

Cheers

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to