[fpc-devel] smrtlinking on arm-wince

Vincent Snijders vsnijders at quicknet.nl
Tue May 16 08:44:56 CEST 2006


Hi,

I was testing how bin arm-wince lcl applications are and wanted to test with 
smartlinking.

First try: using LD as linker
This didn't work, because even if I do make rtl OPT="-CX", no lib*.a files are created.

Second try: using internal linker, which presumably doesn't need the lib*.a files, 
but may not be working on arm-wince.
This failed with the errors below.

How can I created a smartlinked executable for arm-wince?

Vincent

Hint: Start of reading config file C:\FPC\2.1.1\bin\i386-Win32\fpc.cfg
Hint: End of reading config file C:\FPC\2.1.1\bin\i386-Win32\fpc.cfg
Warning: You are using the obsolete switch -OG
Free Pascal Compiler version 2.1.1 [2006/05/16] for arm
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: WinCE for ARM
Compiling C:\DOCUME~1\VINCEN~1\LOCALS~1\Temp\project1.lpr
Compiling Unit1.pas
Assembling unit1
Assembling project1
Linking C:\DOCUME~1\VINCEN~1\LOCALS~1\Temp\project1.exe
project1.lpr(19) Error: Failed reading coff file, illegal reloctype
$0003 while reading C:\DOCUME~1\VINCEN~1\LOCALS~1\Temp\project1.o

<snipped a lot more>

project1.lpr(19) Fatal: There were 50 errors compiling module, stopping




More information about the fpc-devel mailing list