GCC .a Linking and BMax

BlitzMax Forums/BlitzMax Programming/GCC .a Linking and BMax

If it's any help, here's a couple of the linking errors.

C:/Program Files/BlitzMax/Mod/glimmer.mod/tv3d65.mod/tv3d65.debug.win32.a(tv3dwrapper.cpp.debug.win32.o)(.text+0x1357)
:tv3dwrapper.cpp: undefined reference To `_imp___ZN9CTVEngine5ClearEb'
C:/Program Files/BlitzMax/Mod/glimmer.mod/tv3d65.mod/tv3d65.debug.win32.a(tv3dwrapper.cpp.debug.win32.o)(.text+0x1364)
:tv3dwrapper.cpp: undefined reference To `_imp___ZN9CTVEngine6GetFPSEv'



So it's definitely the DLL/Lib that's not linking correctly, and not the way I've structured the CPP wrapper.

But there's some pretty nasty name-mangling going on in there and I'm not sure why or how to fix it. Any ideas on that?

EDIT: And I can't import Pub.Win32 as I've overwritten some of the declarations in that module. Pub.Win32 contains some legacy code which forces you to use ToCString instead of $z and silly stuff like that. I could edit mine, but I can't ask other people to do that as well.