Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
10 crawler(s) on-line.
 102 guest(s) on-line.
 1 member(s) on-line.


 matthey

You are an anonymous user.
Register Now!
 matthey:  5 secs ago
 zipper:  16 mins ago
 BigD:  18 mins ago
 Rob:  18 mins ago
 amigakit:  53 mins ago
 retrofaza:  1 hr 6 mins ago
 VooDoo:  1 hr 18 mins ago
 outlawal2:  1 hr 18 mins ago
 kiFla:  1 hr 45 mins ago
 AmigaOldskooler:  1 hr 56 mins ago

/  Forum Index
   /  Amiga Development
      /  Noob C problem
Register To Post

Goto page ( Previous Page 1 | 2 )
PosterThread
Hypex 
Re: Noob C problem
Posted on 5-Mar-2018 16:05:48
#21 ]
Elite Member
Joined: 6-May-2007
Posts: 11228
From: Greensborough, Australia

@broadblues

Quote:
It doesn't need any includes. All the functions have been declared, so it would build, but it would need linking against a libamiga to get the library call stubs.


It's made for SAS/Lattice C so dependant on that enviroment. Fine if you have that but otherwise an Amiga C program that isn't Amiga C portable by itself.

 Status: Offline
Profile     Report this post  
broadblues 
Re: Noob C problem
Posted on 5-Mar-2018 16:33:52
#22 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Hypex

It would complie with gcc if you had a libstubs.a or an libamiga.a with stubs built in.

It's not great example, but's not wrong per seh, the biggst flaw with the example is because of not using includes the example can not grow inot a more compex program without starting from scratch.

On the other and if include were used they would be the wrong ones for modern usage.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
Hypex 
Re: Noob C problem
Posted on 6-Mar-2018 15:44:55
#23 ]
Elite Member
Joined: 6-May-2007
Posts: 11228
From: Greensborough, Australia

@broadblues

I've got GCC from ADCD2.1 installed but the GUI tends to crash. So haven't touched that in years. OTOH I found I had SAS/C installed but the sc command didn't like it and gave warnings against missing prototypes. Still when I told it to link it created an executable. It worked. Okay for back then but as you showed not good for now.

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle