Re: [fpc-pascal] Linker error on simple program (windows)

2021-06-24 Thread Sven Barth via fpc-pascal
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

[fpc-pascal] Linker error on simple program (windows)

2021-06-23 Thread Bart via fpc-pascal
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 :=

Re: [fpc-pascal] Linker error

2015-12-18 Thread Jonas Maebe
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:

Re: [fpc-pascal] Linker error

2015-12-18 Thread Mattias Gaertner
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

Re: [fpc-pascal] Linker error

2015-12-18 Thread Jonas Maebe
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

Re: [fpc-pascal] Linker error

2015-12-17 Thread Jonas Maebe
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:

[fpc-pascal] Linker error

2015-12-17 Thread Mattias Gaertner
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

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-25 Thread Gerhard Scholz
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

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-25 Thread Tomas Hajny
- 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

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-24 Thread Tomas Hajny
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

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-23 Thread Gerhard Scholz
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

[fpc-pascal] Linker Error: what does this mean?

2013-01-22 Thread Gerhard Scholz
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

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-22 Thread Tomas Hajny
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

Re: [fpc-pascal] Linker Error: what does this mean?

2013-01-22 Thread Tomas Hajny
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

Re: [fpc-pascal] linker error when cross compile for arm

2010-11-07 Thread Jonas Maebe
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'

Re: [fpc-pascal] linker error when cross compile for arm

2010-11-07 Thread Michael Fung
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:

[fpc-pascal] linker error when cross compile for arm

2010-11-05 Thread Michael Fung
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:

[fpc-pascal] Linker error

2006-08-08 Thread Carsten Bager
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

Re: [fpc-pascal]Linker error with OpenGL and SDL (long message)

2003-10-27 Thread Karim
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

Re: [fpc-pascal]Linker error with OpenGL and SDL (long message)

2003-10-27 Thread Marco van de Voort
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:

Re: [fpc-pascal]Linker error with OpenGL and SDL (long message)

2003-10-27 Thread Marco van de Voort
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

[fpc-pascal]Linker error with OpenGL and SDL

2003-10-26 Thread Karim
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:

[fpc-pascal]Linker error under FreeBSD

2003-07-09 Thread Karim Forsthofer
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 --