Page 1 of 1

4.10 - POLINK: fatal error: Internal error: write_executable

Posted: Sat Apr 12, 2008 1:58 am
by Mistrel
I've written an installer than includes a large data file (~65MB) in a DataSection. When I try to compile I get this error:

I can include a smaller 45MB file with no problems.
---------------------------
PureBasic - Linker error
---------------------------
POLINK: fatal error: Internal error: write_executable_image.


---------------------------
OK
---------------------------

Posted: Sat Apr 12, 2008 1:59 am
by Inf0Byt3
Exes can't be bigger than 64 MB! Polink limitation...

There's no bug here.

Posted: Sat Apr 12, 2008 2:04 am
by Mistrel
Can you be more specific? I've seen plenty of exes larger than 64mb.

Posted: Sat Apr 12, 2008 2:07 am
by ts-soft
Mistrel wrote:Can you be more specific? I've seen plenty of exes larger than 64mb.
Exes without Resource-Section greater than 64 MB?
Use Resources for your Installer, so you have no problem with 700 MB or larger :wink:

Posted: Sat Apr 12, 2008 2:08 am
by Inf0Byt3
Of course exes can get big, but the data was not compiled inside for them. It was appended. Of course, even my installer can create 2GB sfx's but the data is appended, not compiled in the resource section.

Posted: Sat Apr 12, 2008 2:18 am
by ts-soft
here is a 114 MB exe compiled with PB:
www.realsource.de/tmp/12.rar
is packed, so the download is only some kb :wink:
only manifest-resource and no append datas

Posted: Sat Apr 12, 2008 2:24 am
by Inf0Byt3
Then I might be wrong... I read something about this for sure but i can't remember where. I could swear it was something.

Posted: Sat Apr 12, 2008 2:31 am
by ts-soft
No good idea so big data is to be packed into a DataSection, the data must be loaded 2x

Posted: Sat Apr 12, 2008 2:45 am
by Inf0Byt3
I knew something...

The creator of pelles C said:
The limit in this case, I think, is an artificial limit in the linker - the EXE file can't be larger than 64MB (I my opinion not that much of a limitation...)
Source:
http://www.purebasic.fr/english/viewtopic.php?t=24806

So it is just a Polink limit, not Windows'... Corrected my post...