bcc generates bad code

Archives Forums/BlitzMax Bug Reports/bcc generates bad code

Brucey(Posted 2015) [#1]
Here's the reference with working example.

In summary, if you define a Const Object with a String value, (Const text:Object = "Hello") the value appearing in the interface file is reference to the String pointer in the original file, eg "_3".
This reference is obviously not available in another file that Imports it. Then you get a FASM error on Linux, and a linkage error on OS X.

It should probably either error the use of "Object" for a const String, or put the String value into the interface file - as it usually does for const Strings.

:o)