Thank you for the explanations! -fPIC solves my problem.
02.03.2015 16:49, Jonas Maebe пишет:
On 02 Mar 2015, at 09:14, Victor Matuzenko wrote:
I have a (very) huge project, and compilation of a shared library
inside it fails at the linking stage:
/usr/bin/ld: : relocation R_X86_64_32S
can I fix it? Should I pass -fPIC argument (and how to do this)?
fpc was built from trunk
uname -a:
Linux larion 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
--
Victor Matuzenko (Виктор Матузенко)
___
fpc-pascal maillist - fpc-p
OPTIONS) $(PROGNAME).pp
-o$(OUTPROGNAME)$(EXEEXT) $(FPC_FILTER)
but I would be happy if fpc will do something like this inside itself :)
--
Victor Matuzenko (Виктор Матузенко)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
2.7.1
=
IMO the problem is the transformation -1 into an unsigned value.
(Unsigned(-1) > Max(Signed).)
How can I rewrite this code to make it correct? I want to use
constants to calculate offsets from untyped pointer.
--
Victor Matuzenko
be a parameter of type Int64 (it depends on how long type
interpreted by C++ compiler).
--
Victor Matuzenko (Виктор Матузенко)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Thanks, it works!
I look forward to 2.8.0 version :)
13.11.2013 16:11, Sven Barth пишет:
Am 13.11.2013 12:08, schrieb Victor Matuzenko:
Hi,
I have internal error when I compile the unit (see source below):
[doj@korica ~/proj/trunk/core/collection]$ fpc dlist.pas4
dlist.pas4(36,1) Fatal
w(Node);
Node^.Value := Value;
Node^.Next := nil;
FLast^.Next := Node;
FLast := Node;
end;
function TList.GetEnumerator: TEnumerator;
begin
Result.FNode := FFirst;
end;
end.
=
--
Victor Matuzenko (Виктор Матузенко)
_
t/engine.php
Links to our tools and old games are on the main page,
http://castle-engine.sourceforge.net/ .
Regards,
Michalis
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
--
Victor M
Sorry, It was sent by mistake from my android device...
09.11.2012 7:19, waldo kitty пишет:
On 11/8/2012 22:15, Виктор Матузенко wrote:
Ккк
what? i don't understand how this is related to my query :? :(
--
Victor Matuzenko (Виктор Мату