There is various way to achieve all this...
You may:
- On windows, you may install winUAE and the whole amidevcpp package:
[url=
http://amidevcpp.amiga-world.de/download.php?HR_LA NG=english]
http://amidevcpp.amiga-world.de/download.php?HR_LA NG=english[/url]
amidevcpp will install a devcpp IDE + a gcc cross-compiler for amiga 68k classic and 3 other amiga-like platform. The good thing is: all official os-friendly SDKs are present in this package, and of course there is command line assembler with this. + you will be able to do modern C and C++. (#pragma once, etc...)
... on amiga or under UAE you may install a more or less old C compiler, SAS C that was used by commodore back then is still the best to screate the best short-sized executables. But I suspect there is no C++ support or a old one. (I never used it, but I compared exes created with it).
There is the VBCC project, started at the end of the nineties, run by the same guys that does the free assembler Phxass: it does C and no C++ at all, but was still maintained recently. I used that for PowerPC prods since it does 68k and ppc.
There is a free good opensource GCC for amiga , a version from 2000. (with quite modern C++,...): you have to install the last amiga "Geek Gadget" developper packages (cygwin equivalent, it adds unix-like libs to an amigaOS system and contain a whole gcc amongst other usefull things like grep command) then update it with the last patch, ... and you will be able to compile a hello world quickly... problem: there are standards unix include and libs, but the whole amiga OS lib SDK (libs and includes) are not present in this gcc: my hint: copy the amiga include and libs from the amidevcpp cross compiler: it works and all exemples from the official amiga developper CD can compile with this (but exe tends to be larger than those of the old SASC ) !
I used to be a fan of Haage&partners's StormC 4 from 2002: StormC3 was not good, but version 4 used another port of GCC: the best part of the software was its debugger, that used MMU stuffs and could work with MuGuardian angel. StormC 4 also had a correct IDE for debugging: breakpoints; stacks and register windows like a real modern platform (it could also debug melted 68k/warpos ppc code.)
... to use asm inline in C or to link asm objects with C objects (which I used to do a lot) there must already exist a thread in the forum about this.