On Fr, 2016-09-02 at 15:03 -0700, fredvs wrote: > Hello Marc. > > And thanks to help.
You're welcome. [...] > But when compiling on a FreeBSD 64 bit system using fpc-*linux-64*, there is > that message on linking: > > [4.438] Searching file /bin/ld... found > [4.438] Using util /bin/ld > [4.438] Executing "/bin/ld" with command line "-b elf64-x86-64 -m elf_x86_64 > *--dynamic-linker=/lib64/ld-linux-x86-64.so > .2* -L. -o ./test ./link.res" > /bin/ld: warning: ./link.res contains output sections; did you forget -T? > [246.930] test.pas(62,1) Error: Can't call the linker, switching to external > linking > [246.930] test.pas(62,1) Error: Error while linking > [246.930] test.pas(62,1) Fatal: There were 2 errors compiling module, > stopping > [247.070] Fatal: Compilation aborted > > So the question is: > What define in fpc.cfg ---> > *with fpSystem call* > vs > *--dynamic-linker=/lib64/ld-linux-x86-64.so.2* > > This because I want to try when linking using fpc-linux: > > [4.438] Executing "/bin/ld" with command line "-b elf64-x86-64 -m elf_x86_64 > *with fpSystem call* -L. -o ./test ./link.res" I don't know about the *with fpSystem call* problem, but the other is solvable using "fpc -k --dynamic-linker=/lib64/ld-linux-x86-64.so.2 ..." as Jonas pointed out already. Marc _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal