Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-05

Cross compilation from Win32 to FreeBSD

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matthias Hryniszak

Hello,

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

X:\fpc\bin\i386-win32\ld.exe: warning: cannot find entry symbol _mainCRTStartup; defaulting to 00401000

AFAICS the problem lies with the bad linker being called (it should be i386-freebsd-ld.exe and not ld.exe). How do I make cross-compilation work?

Matthias.

Reply by email