maxmods / bah.mod

A collection of BlitzMax modules by Brucey
25 stars 17 forks source link

libXML:fails to build on 64 bit NG #57

Closed noroads2015 closed 6 years ago

noroads2015 commented 6 years ago

32 bit compiles fine. 64 bit gives these errors [100%] Linking:.keyword.debug.exe C:/BlitzMax/mod/bah.mod/libxml.mod/libxml.debug.win32.x64.a(glue.cpp.debug.win32.x64.o): In functionbbStringFromXmlChar': C:/BlitzMax/mod/bah.mod/libxml.mod/glue.cpp:403: undefined reference to __imp_xmlFree' C:/BlitzMax/mod/bah.mod/libxml.mod/glue.cpp:403: undefined reference toimp_xmlFree' C:/BlitzMax/mod/bah.mod/libxml.mod/glue.cpp:403: undefined reference to __imp_xmlFree' C:/BlitzMax/mod/bah.mod/libxml.mod/glue.cpp:403: undefined reference toimp_xmlFree' C:/BlitzMax/mod/bah.mod/libxml.mod/glue.cpp:403: undefined reference to __imp_xmlFree' C:/BlitzMax/mod/bah.mod/libxml.mod/libxml.debug.win32.x64.a(glue.cpp.debug.win32.x64.o):C:/BlitzMax/mod/bah.mod/libxml.mod/glue.cpp:403: more undefined references to__imp_xmlFree' follow collect2.exe: error: ld returned 1 exit status Build Error: Failed to link C:/BlitzMax/mod/bah.mod/libxml.mod/doc/.keyword.debug.exe Process complete `

woollybah commented 6 years ago

Hi, can you please provide details of the version of MinGW you're using, and that of bah.libxml and bcc please?

I'm using MinGW-w64, gcc 7.2, with bah.libxml 2.02, and the latest bcc, and it's working as expected.

You may want to try rebuilding it. From the command prompt in the BlitzMax/bin folder you can do :

bmk makemods -a -r -g x64 bah.libxml
noroads2015 commented 6 years ago

rebuilding the module seems to have solved it.