Page 1 of 1

Error linking in Linux CentOS - line option '-no-pie'

Posted: Thu Feb 25, 2021 12:50 pm
by JoseT
Hi,

I tried to compile in CentOS, using pbcompiler from a bash shell, but I get an error with linker.
The output is:

Code: Select all

******************************************
PureBasic 5.73 LTS (Linux - x64) Free
******************************************

Loading external modules...
Starting compilation...
Starting compilation...
37 lines processed.
Creating the executable.
Error: Linker
gcc: error: unrecognized command line option ‘-no-pie’ 
I think that $PUREBASIC_HOME is correctly set in environment, but I have no idea what is causing this error.


Thanks y best regards,

Re: Error linking in Linux CentOS - line option '-no-pie'

Posted: Thu Feb 25, 2021 6:32 pm
by NicTheQuick
Sounds a lot like this bug and this fix: viewtopic.php?p=513891#p513891
Or this: viewtopic.php?f=15&t=70531

Re: Error linking in Linux CentOS - line option '-no-pie'

Posted: Tue Mar 09, 2021 10:45 am
by JoseT
Hi..

If problem is with 'gcc' libraries that is installed (if that is the problem, I'm not sure of this).... Which could be a valid version of gcc for PureBasic?