[fpc-pascal] Error compile library on Linux.

Fred van Stappen fiens at hotmail.com
Fri Mar 14 23:40:40 CET 2014


Hello.

Here are some news from the front :

The fpc Library :

TheRevolutionaryLibrary library;
uses
TheBigUnit;
begin
end.

fpc compiler parameter => -fPIC.

=> Windows 32 bit => Compiles and works more than perfect.
=> Windows 64 bit => Compiles and works more than perfect.

=> Linux 32 bit => Compiles and works more than perfect.
=> Linux 64 bit => Not Compile and that error message:

/usr/bin/ld: /home/fred/mylib/lib/x86_64-linux/thefile.o: réadressage de R_X86_64_32S en vertu de « .bss.n_u_$thefile_$$_usedfirstmessage » cannot be used when creation of shared object, recompile with -fPIC

/home/fred/fmylib/lib/x86_64-linux/thefile.o: error adding symbols: Bad value


Who is the enemy ?

Many thanks.

PS : The library does not use any TForm nor any LCL units...

Fred.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140314/78e8bb8e/attachment.html>


More information about the fpc-pascal mailing list