Lazarus
Using the Lazarus IDE => General => Topic started by: Elphi on September 20, 2007, 05:47:02 pm
-
I get the following error messages:
ydafbudf.lpr(34,1) Fatal: There were 1 errors compiling module, stopping
ydafbudf.lpr(34,1) Error: Error while linking
/mnt/y/y-invent/trunk/common/ylib.o: could not read symbols: Bad value
/usr/bin/ld: /mnt/y/y-invent/trunk/common/ylib.o: relocation R_X86_64_32S against `TC_SYSUTILS_DEFAULTFORMATSETTINGS' can not be used when making a shared object; recompile with -fPIC
What does it mean? Where can I set -fPIC?
BTW, is it a bug that the order of messages is reversed when 'copying selected messages to clipboard'?
-
what compiler options are you using (or better what are you trying ?)
-
Installed FPC 2.2.0 for x86_64 Linux and Lazarus 0.9.23 beta for x86_64 Linux on CentOS 5. I want to build a 64 bits so (containing UDFs for use with Firebird). I didn't change default Lazarus/FPC settings (yet).
-
You're making a library/.so somehow? That's not exactly supported on unix. You can make them by using ppumove tho.
-
You're making a library/.so somehow? That's not exactly supported on unix. You can make them by using ppumove tho.
Building libraries (.so) is supported under Unix. Otherwise it would be impossible to build apache modules.
I would just obey the warning and put -fPIC on the Compiler Options dialog. There one can find a space for "Other options" or something similar.
-
That worked, thanks; my first succesful build on linux!