dat2s, mingw32 and undefined references
wolfman8k

I converted my game to use the dat2s allegro utility to link the data file with the executable. In Linux everything works great, but when I try to link the program in windows with mingw32 I get errors:

Warning: resolving ___linear_vtable24 by linking to __imp____linear_vtable24 (au
to-import)
Warning: resolving ___linear_vtable32 by linking to __imp____linear_vtable32 (au
to-import)
fu000001.o(.idata$3+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
fu000002.o(.idata$3+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
fu000004.o(.idata$3+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `lib_mingw32_liballeg_a_iname'
fu000006.o(.idata$3+0xc): more undefined references to `lib_mingw32_liballeg_a_i
name' follow
nmth000000.o(.idata$4+0x0): undefined reference to `_nm____linear_vtable24'
nmth000016.o(.idata$4+0x0): undefined reference to `_nm____linear_vtable32'
make: *** [mygame] Error 1

I am using Allegro 4.0 dynamicly linked.

Thanks

Matthew Leverton

Upgrade to Allegro 4.0.2, I think it fixes it. Perhaps, it's the WIPs that are fixed.

I know someone was working on that, but I'm not sure if it was fixed completely or not.

Thread #217241. Printed from Allegro.cc