English Amiga Board

English Amiga Board (https://eab.abime.net/index.php)
-   Coders. C/C++ (https://eab.abime.net/forumdisplay.php?f=118)
-   -   amiga-gcc, nix and IFF (https://eab.abime.net/showthread.php?t=105897)

alancfrancis 19 February 2021 12:16

amiga-gcc, nix and IFF
 
Me again, with another silly question.

I was working this morning to get the project I have working under VCC working on amiga-gcc and his something I don't quite understand. There are 4 or 5 exes using Amiga3.x libraries and most are successful.

The last exe in is linked from 2 object files. The first uses the nix time() function, the second uses IFFParseBase. By default m68k-amigaos-gcc complains about a missing reference to gettimeofday() at link... I tried -lnix but no joy.

Next I added -mcrt=clib2 (cargo-culting from the libcurl https example) and the time problem is solved, but now I get an undefined reference to IffParseBase.

So my layman's brain is telling me that the default crt setting isn't giving me access to unix functions but the libamiga in clib2 doesnt seem to be complete (at least grep tells me it contains DosBase but not IffParseBase).

Any help or suggestions or corrections in direction appreciated.

Alan

alancfrancis 19 February 2021 12:24

Update: -lstubs -mcrt=clib2 seems to be the magic key :-)

bebbo 22 February 2021 09:12

Quote:

Originally Posted by alancfrancis (Post 1463545)
Update: -lstubs -mcrt=clib2 seems to be the magic key :-)


I prefer to use only:
-noixemul

PS: https://github.com/bebbo/amiga-gcc/wiki/Libraries


All times are GMT +2. The time now is 05:38.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.

Page generated in 0.07258 seconds with 11 queries