Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Rodney on March 23, 2003, 10:27:19 AM

Title: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Rodney on March 23, 2003, 10:27:19 AM
I recently doubled the RAM in my old P2 233 and its CPU to 400MHz and now UAE runs a bit better. Im confident i can compile stuff now :).

I downloaded the SAS compiler and before you know it, my first program on the Amiga was finished. So what if it was a hello world program :).

Next i'm going for the big one. Im going to try my hardest to impliment the w3c DOM standard, Level 1. I chose this because i like XML and i've wanted to do something useful for the Amiga community. I noticed some expat parsers on aminet, but no DOM. DOM is great!

Anyway, i have much planning to do although im very eger to start. Soon enough i realised SAS doesnt do C++ with what i've donwloaded and installed.

After some browseing, i've come to the conclusion that it might cost some money for SAS/C++. OR am i mistaken? There didnt seem to be much usfual information there about how to get C++ working, like what packages i need, libraries etc.

Anyway, i guess im asking, should i scap SAS and go Gcc as by looking at the packages on aminet, it all seems avaliable :). What's the cheapest easiest way to develop C++ applications on  AmigaOS?
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Kronos on March 23, 2003, 10:40:09 AM
Yes the latest SAS had C++, but that was done with an extra
pre-compiler, and is damn slow (o.k. last time I gtried it was
on a 030/32mhz). It is also a rather old version of C++, so better
don't even think about that.

Your options:
Download gcc (for free)and be prepared for some serious tackling.

Buy the latest DEV-CD which comes with a free copy of StormC3,
ought to be enough for most projects and the CD is a must anyways.

Get GoldED-AIX wich comes with a preconfigured gcc-setup.

Only the 2nd option offers you a debugger, but won't be able
to produce any code for OS4/MOS (not even sure if that version
has PPC-support at all).

So
easy way : StormC/DEV-CD
cheap way : gcc pure
best way (IMHO) : GoldED
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Rodney on March 23, 2003, 11:32:15 AM
Sweet, for now, i'll go with gcc as its the most avaliable right now. Its installation seems pretty straight forward, cept im now sure what the "inline headers" and "Amiga Libraries" sections are in the readme.

I alomost looks like i might be able to do with out them?

The "Amiga Libraries" section talks about libnix.lib, which im not sure really what it does.

Im sure if im porting unix apps i'll need ixemul.lib but otherwise i dont need it? And what i about libnix.lib, do i need it?

Edit: It says in the README that libnix is an AmigaDOS compliant library. So this just means its a library for GCC that impliments AmigaDOS functions or the AmigaDOS API?
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Leo42 on March 23, 2003, 03:16:30 PM
                        Hi,

I'm afraid you do not have the choice if you want to do some C++ on Amiga: GCC...

StormC3 could also do c++ but was expensive... the new v4 also does c++ but uses its own modified gcc compiler...

GCC sucks but it's the only (cheap) usable solution for the Amiga ;(
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Piru on March 23, 2003, 03:27:11 PM
Quote
GCC sucks

Sucks how exactly? Personally I find gcc (2.95.x) great.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: gnarly on March 23, 2003, 03:37:24 PM
1) HiSoft do or did a C++ compiler IIRC.
2) H&P do StormC which does C++ I believe.
3) GCC is free but has no IDE.
4) Unless you buy GoldED which is preconfigured for GCC IIRC.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Kronos on March 23, 2003, 03:48:31 PM
@gnarly

HiSoft-C is identical with MaxonC which something like a
stoneold "copy" of StormC-V1.

Odd thing is that it was done by the same people who later did
StormC and that both suffered from the same bugs   ;-)
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Piru on March 23, 2003, 03:53:12 PM
Quote
2) H&P do StormC which does C++ I believe.

H&P StormC V3 is quite useless: It's buggy and generates slow code.

V4 is just IDE for gcc.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Dietmar on March 23, 2003, 04:46:17 PM
> [gcc] Sucks how exactly?

It's very very slow and there is no souce level debugger for gcc.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Piru on March 23, 2003, 04:55:31 PM
Quote
It's [gcc] very very slow and there is no souce level debugger for gcc.

It's not that slow, on up to date computer.

Source level debugger: gdb
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Yellow on March 23, 2003, 05:28:30 PM
Is SAS/C compiler freely downloadable nowadays? If it is, where can I download it? Thanks.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Dietmar on March 23, 2003, 06:20:15 PM
Quote
Is SAS/C compiler freely downloadable nowadays? If it is, where can I download it? Thanks.


No. A reasonable free alternative would be vbcc. vbcc doesn't have its own debugger but that is made up by the support for morphos and other PPC targets.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Piru on March 23, 2003, 06:29:45 PM
Quote
A reasonable free alternative would be vbcc.

You need to also remember that vbcc doesn't do c++, just c.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Dietmar on March 23, 2003, 06:33:29 PM
Quote
H&P StormC V3 is quite useless: It's buggy and generates slow code. V4 is just IDE for gcc.


That's not exactly true, AFAIK: StormC4 is not just a frontend for gcc but adds very useful components that are not freely available, such as a debugger and run-time environment etc. Even if it were "just" an IDE, an IDE can be a very useful thing to increase your productivity, compared to a bare-bones gcc.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Dietmar on March 23, 2003, 06:36:50 PM
Quote
You need to also remember that vbcc doesn't do c++, just c.


Yes, as is SAS/C (unless you consider its preprocessor as a serious C++ development platform, which I don't).
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Dietmar on March 23, 2003, 06:46:52 PM
Quote
It's not that slow, on up to date computer.


I've tried gcc 2.95.3 and it's a snail. I've tried it on a 1.4Ghz PC. Compared to SAS/C on the same computer, it's so slow that I couldn't imagine using it for serious development. Of course such a decision very much depends on your programming style. I like to compile often with full optimization.

Quote
Source level debugger: gdb


Well, I'm aware that there is a program with that name in the gcc tree but I just can't get it to work :-)  I'd very much appreciate some comments on gdb: does it work, is it any good, what do you do if it reports that it can't find symbols ?
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: mdwh2 on March 23, 2003, 07:24:01 PM
Quote
StormC3 could also do c++ but was expensive

StormC 3 is on the Amiga Developer CD (which is useful to have anyway), and only costs about 15UKP iirc.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Rodney on March 23, 2003, 10:31:34 PM
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Kronos on March 23, 2003, 11:04:00 PM
@Rodney

Don't forget to set C++ in the Compiler-Options  :-o
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: SlimJim on March 23, 2003, 11:06:08 PM
GGS data is selling StormCv4 Professional for 975 SEK (around $100 I think)
 
GGS data special offers (http://www.ggsdata.se/begagnat)
 
Not tremedously cheap, but compared to what it used to
cost I suppose it's ok.
.
SlimJim
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Dietmar on March 24, 2003, 12:42:56 AM
Quote
Not tremedously cheap, but compared to what it used to cost I suppose it's ok.


If your currency conversion is correct (100 US$),  then it's massively overpriced. It's available for 49,95 directly from the manufacturer.
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: SlimJim on March 24, 2003, 08:48:55 AM
@Dietmar
 
Cool. Didn't know that. Are you sure you are talking about
the 'Professional' version (don't have time to check
myself)?
 
The PowerPC assembler package is selling for about $50 on though ... how much is that from the manufacturer (is that Haage & Partner)?
.
SlimJim
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: trgse on March 24, 2003, 09:05:30 AM
gdb has it's troubles

such as not working with libnix compiled programs (I think, was a long time since I even tried gdb)

btw. StormC 4 is a lot more than simply a IDE
1) better compatability with both old StormC V3 and SAS/C
2) very good debugger (probably the best on the Amiga ever, beats the #### out of SAS/C's cpr and GG's gdb? puh)
3) very good documentation utilities(helps keep track of bugs, future requests also)
4) built in CVS
5) nice librarian

add to this that it is a GCC compiler together with stlport it's probably the best C++ compiler for the amiga (haven't seen anyone make stlport available for GG's GCC, which is a pity)
Title: Re: Easiest Cheapest way for C++ Dev on AmiOS?
Post by: Rodney on March 25, 2003, 02:11:19 AM
I've installed GCC. Now i have to get the Commador OS header files, otherwise, as quoted, i wont be able to copmile real amiga programs.

It says i can get these header files from the FISH CDs or from a dev CD or something...

Anyone know more information about these? What are these header files? Are these *like* the header files of the standard C/C++  libraries?

EDIT: Found a site which explains a lot of my questions. Explains ixemul.libarary. Also the Commador OS files. It also has a link to download the Commador Native Developer Kit, which includes the include header files i need to create real amiga programs.


Although ihave another question! When i installed VBCC i didnt have the header files (or did i?) and i was able to compile programs and run them. Is this a real Amiga program? What is a REAL amiga program that the gcc install said i wouldnt be able to create without the header files, which vbcc seems to do well... i think... :}