@Chris
Quote:
I thought this error was caused by using libraries built for clib2 in a program built for newlib, or vice versa.
I'm fairly sure I'm using newlib compiled libPNG and the sysmbol does seem to be in the crtbegin.o object so I don;t think it's a mixng clib2 with newlib thing.
I just tried defining the symbol with
uint32 __reent_magic;
in my library init.c and it now links (as it would) but more interesting the png loader now works as expected.
I tried that before with the jpeg lib and it caused crashes, unless the crash was for some other reason, and just a coincidence (there were a few other errors to fix).
Possible work arround, love to hear from someone who "knows"....