// test.gbas
REQUIRE "hello.c"
IMPORT "C" void test()
test()
// hello.c file
extern "C" void test(void)
{
int a;
}
Wont compile on Linux. Using a .cpp file instead also fails.
hmm thats interesting!
Unfortunately no - the error messages I get are :
Quotegcc: installation problem, cannot exec `cc1': No such file or directory
and
Quote/cygdrive/c/Users/Nicholas/AppData/Local/Temp/ccyo81KW.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
/cygdrive/c/Users/Nicholas/AppData/Local/Temp/cc8D3HjN.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
/cygdrive/S/Compiler/platform/Linux/Lib/libGLBasicLinux-console.a(glb_pc.o)(.text+0xa85): In function `__GLBASIC__::__ShutDownGLBasic()':
: undefined reference to `operator delete(void*)'
/cygdrive/S/Compiler/platform/Linux/Lib/libGLBasicLinux-console.a(glb_pc.o)(.text+0xb1b): In function `__GLBASIC__::__ShutDownGLBasic()':
: undefined reference to `operator delete(void*)'
/cygdrive/S/Compiler/platform/Linux/Lib/libGLBasicLinux-console.a(glb_pc.o)(.text+0xb2d): In function `__GLBASIC__::__ShutDownGLBasic()':
: undefined reference to `operator delete(void*)'