Code: Select all
#IF DEFINED(__FB_WIN32__)
'Windows related only
#ELSEIF DEFINED(__FB_LINUX__)
'Linux stuff here
#ENDIF
Code: Select all
xxx.bas(29) warning 3(2): Passing different pointer types, at parameter 1 of LSTRCPYW()
ld: /usr/lib/gcc/x86_64-linux-gnu/14/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a PIE object
ld: failed to set dynamic section sizes: bad value
it looks like a bug, the compiler should ignore the Windows related part.
this is my compiler command:
Code: Select all
fbc -Wc -fPIC -Wl -pie -O 3 -s gui -strip -exx -w all $FILENAME.bas