View Single Post
Old 04 February 2023, 21:42   #12
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by tygre View Post
Should I keep -mrel at all, then?
Remove it and see what happens. With all object files from vbcc there shouldn't be any difference.

Quote:
I actually removed all dependencies to POSIX (wanted to have "pure" Amiga code for a long time anyway)
That's what I always recommend. Eliminate as many dependencies as possible and make it a real AmigaOS program.
POSIX emulation is for Q&D Unix ports only.

Quote:
but still the Guru 8000 0003 comes. It happens, it seems, before my main() is even called...
Constructors are being called before
main()
. PosixLib certainly inserted some of these. But as you say it is gone... check your other constructors (functions named
__INIT..
). Or let the linker generate a mapfile to see which constructors have been found. Or debug the startup. Shouldn't be so difficult.

EDIT: BTW, I just realised you passed
-mrel
to the vc-frontend. That cannot work as this is a linker-option only.

Last edited by phx; 04 February 2023 at 21:51. Reason: -mrel is a linker option
phx is offline  
 
Page generated in 0.06397 seconds with 11 queries