Error compiling with latest NG on Windows 64 (same code of 2 years ago')

Started by fielder, August 06, 2024, 09:20:17

Previous topic - Next topic

fielder

i'have updated to latest NG for compiling on Windows 64 (previously i was using an old NG form 3 years ago)

now i have a project that do this:

[ 96%] Compiling:eepromdump2code.bmx.gui.debug.win32.x64.c
C:/BlitzMax/MinGW32x64/bin/gcc.exe -I"C:/BlitzMax/mod" -I"C:/BlitzMax/mod/brl.mod/retro.mod" -I"C:/BlitzMax/mod/brl.mod/wavloader.mod" -I"C:/BlitzMax/mod/brl.mod/freetypefont.mod" -I"C:/BlitzMax/mod/bah.mod/clipboard.mod" -I"C:/BlitzMax/mod/bah.mod/volumes.mod" -I"C:/BlitzMax/mod/brl.mod/pngloader.mod" -I"C:/BlitzMax/mod/maxgui.mod/drivers.mod" -I"C:/BlitzMax/mod/brl.mod/eventqueue.mod" -I"C:/BlitzMax/mod/brl.mod/timerdefault.mod" -I"C:/BlitzMax/mod/brl.mod/randomdefault.mod" -I"C:/BlitzMax/mod/brl.mod/d3d9max2d.mod" -I"C:/BlitzMax/mod/brl.mod/directsoundaudio.mod" -I"C:/BlitzMax/mod/brl.mod/blitz.mod" -I"C:/BlitzMax/mod/brl.mod/appstub.mod" -I"C:/BlitzMax/mod/brl.mod/standardio.mod"  -w -DBMX_NG -m64 -ffast-math -fno-exceptions -c -O3 -msse3  -g -o "C:/Users/Bfield/Google Drive/test 2024/extract-codici-dump-eeprom/.bmx/eepromdump2code.bmx.gui.debug.win32.x64.o" "C:/Users/Bfield/Google Drive/test 2024/extract-codici-dump-eeprom/.bmx/eepromdump2code.bmx.gui.debug.win32.x64.c"
In file included from C:/BlitzMax/mod/image.mod/png.mod/.bmx/common.bmx.debug.win32.x64.h:4,
                from C:/BlitzMax/mod/image.mod/png.mod/.bmx/common.bmx.debug.win32.x64.c:1:
C:/BlitzMax/mod/brl.mod/blitz.mod/.bmx/blitz.bmx.debug.win32.x64.h:318:13: error: conflicting types for 'bbObjectDumpInstanceCounts'; have 'void(BBBYTE *, BBINT,  BBINT)' {aka 'void(unsigned char *, int,  int)'}
  318 | extern void bbObjectDumpInstanceCounts(BBBYTE* bbt_buffer,BBINT bbt_size,BBINT bbt_includeZeros);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~


the error throwed is :


it's somethign related to Blitzmax not to my code

thank you for any help


Derron

Did you do a "quick compile" ?

I just downloaded the weekly build from sunday today and built the basic modules + some sample application without issues.

Your "conflicting types" could indicate a "quick build" ... without proper rebuild of the modules.

So: did you download the weekly build, extracted it into a _new_ folder and compiled from there -- or did you extract it over your existing BlitzMax folder (the 3 yrs old one) ?

I assume the "override" one as you have "bah.mod"-stuff in there which is not "default" (and the modules there are now in some cases already shipped with the default modules - eg brl.clipboard instead of bah.clipboard, same for volumes.mod...)


so ensure to test with a fresh download / extraction first - and when bringing in your custom/3rd-party modules - check if they are now already shipped in the new "default modules" as Brucey ("bah") brought over plenty of them already.


bye
Ron

fielder

Very thank you Ron!, deleted everything about blitzmax... downloaded latest archive, rebuilded adding Brucey's mods.. and everything is working!