Bart via fpc-pascal schrieb am Mi., 23.
Juni 2021, 18:59:
> The error goes away if I remove the inline directive from the function
> definition in the interface section, or if I also declare the other
> function (which gives the linker error) in the interface section.
>
The compiler shouldn't
Given this unit:
unit ExtMath;
{$mode objfpc}
interface
function LeadingZeroBits(n: Byte): Integer; inline;
implementation
function LeadingZeroBits(n: QWORD; BitSize: Integer): Integer;
begin
Result := 0;
end;
function LeadingZeroBits(n: Byte): Integer;
begin
Result :=
Mattias Gaertner wrote on Fri, 18 Dec 2015:
What could be the cause of this linker error:
main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet
/usr/bin/ld.bfd: warning: ../link.res contains output sections; did
you forget -T?
/usr/bin/ld.bfd:
On Fri, 18 Dec 2015 11:30:00 +0100
Jonas Maebe wrote:
>
> Mattias Gaertner wrote on Fri, 18 Dec 2015:
>
> > What could be the cause of this linker error:
> >
> > main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet
> > /usr/bin/ld.bfd: warning: ../link.res
Mattias Gaertner wrote on Fri, 18 Dec 2015:
On Fri, 18 Dec 2015 11:30:00 +0100
Jonas Maebe wrote:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807170#19
Does that mean the fpc 3.0.0 (rc-buggy) package only works on
debian unstable?
It should work on
Mattias Gaertner wrote:
What could be the cause of this linker error:
main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet
/usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget
-T?
/usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o:
Hi,
What could be the cause of this linker error:
main.pp(6923,23) Warnung: Symbol "CommandLine" ist veraltet
/usr/bin/ld.bfd: warning: ../link.res contains output sections; did you forget
-T?
/usr/bin/ld.bfd: /usr/lib/fpc/3.0.0/units/x86_64-linux/rtl/cprt0.o:
unrecognized relocation (0x2a) in
to have it, of course I can also mail the files.
Gerhard
- Original Message -
From: Tomas Hajny xhaj...@hajny.biz
To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Sent: Thursday, January 24, 2013 9:32 AM
Subject: Re: [fpc-pascal] Linker Error: what does this mean?
On Wed
- Original Message -
From: Tomas Hajny xhaj...@hajny.biz
To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Sent: Thursday, January 24, 2013 9:32 AM
Subject: Re: [fpc-pascal] Linker Error: what does this mean?
On Wed, January 23, 2013 23:56, Gerhard Scholz wrote:
Hello
On Wed, January 23, 2013 23:56, Gerhard Scholz wrote:
Hello,
thanks for the hint with the -Xe parameter (the external linker is damned
slow!), now it compiles.
.
.
I'm glad that the external linker helped. Indeed, slowness of the external
linker is one of reasons for using the internal one
for the help.
Greetings
Gerhard
- Original Message -
From: Tomas Hajny xhaj...@hajny.biz
To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Sent: Wednesday, January 23, 2013 1:00 AM
Subject: Re: [fpc-pascal] Linker Error: what does this mean?
On 23 Jan 13, at 0:01, Gerhard
Question: what's the reason for this error?
Linking .\read.exe
Error: Failed reading coff file, illegal reloctype $ while reading
.\U_UNIDAT
The program compiles wonderfully with VirtualPascal; I wanted to recompile
it with FPC.
Gerhard
On 22 Jan 13, at 21:31, Gerhard Scholz wrote:
Question: what's the reason for this error?
Linking .\read.exe
Error: Failed reading coff file, illegal reloctype $ while reading
.\U_UNIDAT
The program compiles wonderfully with VirtualPascal; I wanted to recompile
it with FPC.
I
On 23 Jan 13, at 0:01, Gerhard Scholz wrote:
The files are completed compiled with FPC, no renaming of VPascal object
files.
The only explanation I have that it must have to do with the size of the
file; the .o has 8 MB and just defines some CONST and VAR structures, no
code.
Assuming
On 06 Nov 2010, at 04:18, Michael Fung wrote:
But when I try to compile a program with the synapse units it gives the
following error:
/usr/lib/fpc/2.5.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
Many Thanks Jonas! Now I know my SDK may be broken.
Rgds,
Michael
On 2010/11/8 上午 05:06, Jonas Maebe wrote:
On 06 Nov 2010, at 04:18, Michael Fung wrote:
But when I try to compile a program with the synapse units it gives the
following error:
Dear all,
I followed the wiki at:
http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM
After that, I can compile a hello world program for arm without
problem, great!
But when I try to compile a program with the synapse units it gives the
following error:
When I am try to link a c obj file together with a fpc program I get this errors
(d is my program)
ld.exe: ERROR: system.o uses hardware FP, whereas d uses software FP
ld.exe: failed to merge target specific data of file system.o
My target (Arm 9) dos not have a FPU
Carsten
Hello
Marco, the link.res seems to be o.k . It looks like this:
SEARCH_DIR(/usr/lib/)
SEARCH_DIR(/usr/X11R6/lib/)
SEARCH_DIR(/usr/local/lib/)
SEARCH_DIR(/usr/local/lib/fpc/1.0.10/units/freebsd/rtl/)
SEARCH_DIR(/usr/local/lib/fpc/1.0.10/units/freebsd/SDL4Freepascal-1.2.0.0/)
etc.
I don`t know
Now, the whole thing is bewildering, because I get a second error message
which is diffrent from the old one.
The message looks like this:
-bash-2.05b$ fpc demo01.pp
Free Pascal Compiler version 1.0.10 [2003/06/27] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS:
Marco, the link.res seems to be o.k . It looks like this:
SEARCH_DIR(/usr/lib/)
SEARCH_DIR(/usr/X11R6/lib/)
SEARCH_DIR(/usr/local/lib/)
SEARCH_DIR(/usr/local/lib/fpc/1.0.10/units/freebsd/rtl/)
SEARCH_DIR(/usr/local/lib/fpc/1.0.10/units/freebsd/SDL4Freepascal-1.2.0.0/)
etc.
Hmm, I
Hello
I installed the SDL Bindings for FPC (FreeBSD). I compiled the bindings
and copied
the all .ppu and object files in a SDL units directory.
Now, I want to test sdl and the bindings with the examples the comes with
the it. Like demo01.pp
When I try to compile it, I get this message:
Hello
I tried to compile a program with fpc (for FreeBSD).
The objectfile was build, but the linker put an error msg on the screen.
linking
/usr/bin/ld cannot find -ldl
ehh ?
I looked in the /usr/bin dir, the gnu linker is there. What`s the problem ?
Karim
--
23 matches
Mail list logo