Closed GWRon closed 4 years ago
Probably a broken installation.
I also came across this one, this is the smallest reproducible sample I could come up with.
inc_test.bmx
SuperStrict
Include "a.bmx"
Incbin "data1.txt"
a.bmx
Incbin "data2.txt"
Rem code continues here ...
data1.txt
data1
data2.txt
data2
D:/BlitzMaxNG/BlitzMaxNG Code/inc/.bmx/inc_test.bmx.release.win32.x64.incbin2.c:3:10: fatal error: brl.mod/blitz.mod/incbin/incbin.h: No such file or directory
3 | #include "brl.mod/blitz.mod/incbin/incbin.h"
| ^~~~~~~~~~~
compilation terminated.
Build Error: failed to compile (1) D:/BlitzMaxNG/BlitzMaxNG Code/inc/.bmx/inc_test.bmx.release.win32.x64.incbin2.c
However if you remove the incbin from a.bmx and move it into inc_test.bmx it will work as before.
Yes, user now added extra info about his code:
nested include files containing the incbins...
I assume Brucey uses include files as often as I do... So something often skipped in tests.
Discord user "piecrust936" reported:
(Me: "hmm ... brucey did a fallback on Windows as the (new) incbin stuff was not working properly there compiling 64 or 32bit?". If it is 32bit -- try 64bit (it should work then). Assuming it uses "include... incbin.h" you compiled for 64bit")
So the issue is unconfirmed yet (by eg. me) but I better raise an issue so we can keep track of it.
Edit: dunno if this is a bmk, bcc or brl.mod issue.