<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've downloaded the packet with as, ld aso. from
freepascal ftp server, unpacked it and compiled th RTL (without any problems!).
Now I want to compile a hello, world application for bsd on my Win32 box. I've
found the compiler switch -Tfreebsd, used it and the content of generated file
looks like a win32 app! Also, the linker tells me that</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>X:\fpc\bin\i386-win32\ld.exe: warning: cannot find
entry symbol _mainCRTStartup; defaulting to 00401000</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>AFAICS the problem lies with the bad linker being
called (it should be i386-freebsd-ld.exe and not ld.exe).</FONT></DIV>
<DIV><FONT face=Arial size=2>How do I make cross-compilation work?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matthias.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>