Heyas!
I'm having real trouble sorting out a problem.
I have a project I'm trying to port to Linux x64. It works fine on Windows both 32 and 64 bits however it fails to compile with the error "Error while linking" on Linux. It also works correctly on Linux x86.
I think the problem is that I am trying to link a C library. I have compiled it using the switches -shared, -std=c++11 and -fPIC. I am linking it in Pascal with {$LINKLIB ...}.
I've tried a few different combinations (compiling to .a, .so... using $LINK instead of $LINKLIB...) but what I have settled on works in x86 but not x64. I've also tried fixing the paths using various options (-Fl on the compiler, -rpath and -L on the linker).
It must be the compilation of the C library?? The problem is that g++ (its C wrapped) won't compile it without -fPIC and -std=c++11. I'm assuming that -shared is required (it works in x86).
Can anyone help?
Daniel.