Open GWRon opened 1 year ago
You don't need to import a header.
You can just do this
SuperStrict
Extern
Function test:Int()
EndExtern
I see what you are trying to do. We don't support header only imports like that.
You'll need to create a .c file or something, and include your header there.
We can update the "Interfacing with C" section of the docs to note that you can't import headers in this way and expect to use them like that.
When importing a file which imports an ".h" file to define external function, this results in duplicate definitions: test.bmx
ext.bmx:
external.h:
outputs:
Renaming the external to "external.c" (and importing this instead) results in
Only "visible" difference I saw is when doing that
import "external.h"
: this leads to gcc "-I"-ing the project folder