REQUIRE isn't liked by Linux

Previous topic - Next topic

MrTAToad

Code (glbasic) Select
// test.gbas
REQUIRE "hello.c"
IMPORT "C" void test()

test()


Code (glbasic) Select

// hello.c file
extern "C" void test(void)
{
int a;

}


Wont compile on Linux.  Using a .cpp file instead also fails.

Schranz0r

hmm thats interesting!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

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*)'