Sign in Join

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

Mailing lists / fpc-pascal / 2011-05

Fatal error "Executable image size is too big for wince target"

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Björn Schreiber

Hi *.*.

We use a recent Lazarus snapshot (Lazarus 0.9.31 r30406 FPC 2.4.3 i386-win32-win32/win64) for developing applications for a Windows Embedded CE 6.0.

After expanding one of the projects by adding another dialog, we got the above mentioned error message while linking. Normally we use the following settings:

-CX
-O1
-g
-gl
-Xs
-Xg

Even if we only added the new unit to the uses statement - Lazarus gave us the hint "unit not used" - we got this error. Compiling the project without the additional dialog we reach the following file sizes:

*.dbg 29.732 k
*.exe 4.870 k

If we replace another dialog with the new one the project compiled well, so the problem couldn't related to this specific dialog.

In order to compile the project with the new dialog we removed -g and -gl and got the following file sizes:

*.dbg 12.670 k
*.exe 4.864 k

Of course we are not able to debug the project any more.

Greetings

Björn Schreiber, DRIGUS GmbH Bei Email NOSPAM in den Betreff aufnehmen. Put NOSPAM in subject to reach me by email.

Reply by email

Björn Schreiber
to Björn Schreiber: Hi *.*. We use a recent Lazarus snapshot (Lazarus 0.9.31 r30406 FPC 2.4.3…

Björn Schreiber wrote

After expanding one of the projects by adding another dialog, we got the above mentioned error message while linking.

Really no hints? It starts driving me nuts that I can't debug our Windows CE project any more ...

Greetings

Björn Schreiber, DRIGUS GmbH Bei Email NOSPAM in den Betreff aufnehmen. Put NOSPAM in subject to reach me by email.

Reply by email

Jonas Maebe
to Björn Schreiber: Björn Schreiber wrote Really no hints? It starts driving me nuts that I can't debug our…
Björn Schreiber wrote 7 lines
Björn Schreiber wrote > After expanding one of the projects by adding another dialog, we got > the above mentioned error message while linking. Really no hints? It starts driving me nuts that I can't debug our Windows CE project any more ...

What you can try is to compile the LCL without debug information (add the option -g- for the LCL compilation), and then compile your own program with debug information. You won't be able to step into the LCL, but debugging your own code may work again.

Jonas

Reply by email