English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. C/C++ (http://eab.abime.net/forumdisplay.php?f=118)
-   -   gcc clib for KS1.3 (http://eab.abime.net/showthread.php?t=98899)

sparhawk 20 September 2019 14:55

gcc clib for KS1.3
 
Is there a clib for gcc which can be used. I'm using bebbo's amiga-gcc (https://github.com/bebbo/amiga-gcc) with msys2.
I successfully compiled a small test executable with the barebone gcc which worked, but when I tried a helloworld it crashed. I hadn't had time yet to see why it crashed (will look itnto that hopefully this weekend) but from what I understood the clib2, which is included, is for Amiga OS 2.0+.

bebbo 20 September 2019 18:29

Quote:

Originally Posted by sparhawk (Post 1346709)
Is there a clib for gcc which can be used. I'm using bebbo's amiga-gcc (https://github.com/bebbo/amiga-gcc) with msys2.
I successfully compiled a small test executable with the barebone gcc which worked, but when I tried a helloworld it crashed. I hadn't had time yet to see why it crashed (will look itnto that hopefully this weekend) but from what I understood the clib2, which is included, is for Amiga OS 2.0+.




don't use clib2, use -mcrt=nix13.

sparhawk 20 September 2019 19:06

Thanks! It works now! :)

sparhawk 20 September 2019 19:48

BTW: Where can I find includes for exec, intuition, etc.?

nogginthenog 20 September 2019 20:16

Default is normally /opt/amiga/m68k-amigaos/ndk-include

bebbo 20 September 2019 20:34

Quote:

Originally Posted by nogginthenog (Post 1346764)
Default is normally /opt/amiga/m68k-amigaos/ndk-include


and for kickstart 1.3 you find them in /opt/amiga/m68k-amigaos/ndk13-include. These aren't the original headers, these are generated from the 2.0+ headers.


All times are GMT +2. The time now is 19:23.

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

Page generated in 0.04075 seconds with 11 queries