Page 1 of 1
POLINK error message
Posted: Sat Dec 09, 2006 12:44 am
by dell_jockey
Hi Group,
when trying to compile a program that has almost 400 address labels in a data section, POLINK gives me the following error:
Code: Select all
POLINK: fatal error: Internal error: write_executable_image
Is there a
limit to the number of labels I can have in a
datasection? The labels are used to CatchSprite small images.
thanks for any hints!
Posted: Sat Dec 09, 2006 12:52 am
by srod
In the following link, Droopy reports a similar problem and then posts a link to Pelles board where he mentions this problem.
http://www.purebasic.fr/english/viewtop ... 1596eca32d
Hope it helps.
Posted: Sat Dec 09, 2006 1:12 am
by netmaestro
I can't reproduce it using 4.01. I've created a datasection with 700 address labels followed by an IncludeBinary (all the same file, maybe that makes a difference?) and it compiles and runs without error. Is your exe file size above 64 mb? If so, it's probably the same as Droopy's issue as the number of labels can be at least 700+ and probably much more.
One solution would be to put all the images into one large .bin file and get them in on program start with ReadData-CatchImage 400 times.
Posted: Sat Dec 09, 2006 1:41 am
by dell_jockey
I goofed up- I forgot to compress a couple of those many bitmaps, so that the final executable would need to be larger than 64MB, which obviously is a current POLINK limit. Thanks for your feedback!