bmx-ng / bcc

A next-generation bcc parser for BlitzMax
zlib License
33 stars 13 forks source link

Compiler directives not recognized resulting in identifier not found. #608

Closed braxtonrivers closed 1 year ago

braxtonrivers commented 1 year ago

Bug Report

It would appear that compiler directives are not being recognized resulting in the following errors.

maxide.bmx ?MacOS Const LABELOFFSET=2 ?Win32 Const LABELOFFSET=4 ?Linux Const LABELOFFSET=0 ?

Compile Error: Identifier 'LABELOFFSET' not found.

reflection.bmx ?Not ptr64 Field _size=4 ?ptr64 Field _size=8 ?

Compile Error: Identifier '_size' not found.

Environment

GWRon commented 1 year ago

Does it happen in <0.136 too?

Edit: I am running latest-commit-bcc and cannot replicate the issue. Can you also try a clean "rebuild" of the bcc binary (you might need to use an older bcc to be able to compile bcc)

braxtonrivers commented 1 year ago

Thanks GWRon a complete clean rebuild using your windows script sorted it out, so strange as it was working fine until yesterday, will close this since it is an isolated issue.