English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 20 September 2019, 13:55   #1
sparhawk
Registered User

sparhawk's Avatar
 
Join Date: Sep 2019
Location: Essen/Germany
Age: 50
Posts: 39
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+.
sparhawk is offline  
Old 20 September 2019, 17:29   #2
bebbo
botcher

 
Join Date: Jun 2016
Location: Hamburg/Germany
Posts: 422
Quote:
Originally Posted by sparhawk View Post
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.
bebbo is offline  
Old 20 September 2019, 18:06   #3
sparhawk
Registered User

sparhawk's Avatar
 
Join Date: Sep 2019
Location: Essen/Germany
Age: 50
Posts: 39
Thanks! It works now!

Last edited by sparhawk; 20 September 2019 at 18:47.
sparhawk is offline  
Old 20 September 2019, 18:48   #4
sparhawk
Registered User

sparhawk's Avatar
 
Join Date: Sep 2019
Location: Essen/Germany
Age: 50
Posts: 39
BTW: Where can I find includes for exec, intuition, etc.?
sparhawk is offline  
Old 20 September 2019, 19:16   #5
nogginthenog
Amigan

 
Join Date: Feb 2012
Location: London
Posts: 844
Default is normally /opt/amiga/m68k-amigaos/ndk-include
nogginthenog is offline  
Old 20 September 2019, 19:34   #6
bebbo
botcher

 
Join Date: Jun 2016
Location: Hamburg/Germany
Posts: 422
Quote:
Originally Posted by nogginthenog View Post
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.
bebbo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A500 ks1.3 Devlin support.Hardware 7 27 August 2019 00:12
Guardian for KS1.2/1.3 Jope request.Apps 3 08 November 2018 08:00
Antivirus KS1.3 LeCaravage request.Apps 11 20 July 2018 22:59
A600 Ks1.2 Arnie support.Hardware 2 19 October 2011 20:46
fastfilesystem on KS1.3 orange support.Apps 1 15 September 2010 18:18

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06673 seconds with 15 queries