Welcome, Guest. Please login or register.

Author Topic: Easiest Cheapest way for C++ Dev on AmiOS?  (Read 3502 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline RodneyTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1386
    • Show only replies by Rodney
    • http://donthaveone.com/
Easiest Cheapest way for C++ Dev on AmiOS?
« 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?
We are not Humans having a spirital experiance
We are Spirits having a Human experiance.
 

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #1 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
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline RodneyTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1386
    • Show only replies by Rodney
    • http://donthaveone.com/
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #2 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?
We are not Humans having a spirital experiance
We are Spirits having a Human experiance.
 

Offline Leo42

  • Newbie
  • *
  • Join Date: Dec 2002
  • Posts: 44
    • Show only replies by Leo42
    • http://nogfx.free.fr
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #3 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 ;(
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #4 on: March 23, 2003, 03:27:11 PM »
Quote
GCC sucks

Sucks how exactly? Personally I find gcc (2.95.x) great.
 

Offline gnarly

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 351
    • Show only replies by gnarly
    • http://thinkdrastic.net/
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #5 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.
Cheers,

Olly
Think Drastic
 

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #6 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   ;-)
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #7 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.
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #8 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.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #9 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
 

Offline Yellow

  • Newbie
  • *
  • Join Date: Mar 2003
  • Posts: 6
    • Show only replies by Yellow
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #10 on: March 23, 2003, 05:28:30 PM »
Is SAS/C compiler freely downloadable nowadays? If it is, where can I download it? Thanks.
\\"Our meeting was not a coincidence. Nothing happens by accident.\\" - Gui-Gon Jinn (Star Wars I: Phantom Menace)
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #11 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.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #12 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.
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #13 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.
 

Offline Dietmar

  • Full Member
  • ***
  • Join Date: Nov 2002
  • Posts: 220
    • Show only replies by Dietmar
    • http://devplex.awardspace.biz
Re: Easiest Cheapest way for C++ Dev on AmiOS?
« Reply #14 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).