|
From: Thorsten O. <ad...@th...> - 2018-01-05 01:01:27
|
On Donnerstag, 4. Januar 2018 23:10:12 CET Peter Slegg wrote: > Has anyone ever tried to build any C++ on an Atari (not cross-compiling) ? Yes, no problem with that. Only problem might be that the compiler needs lots of memory, especially when compiling code using templates. >I managed to write hello-world.cpp and compile and link it with gcc. You could use the normal gcc driver for compiling source files, as long as they are named *.cpp, *.cc or *.C. But i would not recommend that, better explicitly use the g++ driver. You will need to use that anyway when linking. >for (int i=1; i <11; i++) Thinks like that are also accepted in c99 mode, so you can't be sure it's treated as c++ ;) |