Op 2020-06-08 om 10:14 schreef Zamrony P. Juhara via fpc-pascal:
Following program
program test;
{$IFDEF UNIX}
uses cthreads;
{$ENDIF}
begin
writeln('test');
end.
Compile with FPC 3.0.4 on FreeBSD 12. When run test program, it causes
segmentation fault.
What is wrong? Without cthreads unit, it run fine.
Possibly a linker issue. See if you can change the linker to ld.bfd
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal