GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2009-Aug-05

Title: REQUIRE isn't liked by Linux
Post by: MrTAToad on 2009-Aug-05
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.
Title: Re: REQUIRE isn't liked by Linux
Post by: Schranz0r on 2009-Aug-07
hmm thats interesting!
Title: Re: REQUIRE isn't liked by Linux
Post by: MrTAToad on 2009-Aug-07
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*)'