From: Peter S. <p....@sc...> - 2018-01-04 22:39:47
|
On Thu, 4 Jan 2018 22:10:12 , Peter Slegg <p....@sc...> wrote: > Just curious but gcc supports C++ but does the mint 4.6.4 build support it ? > > Has anyone ever tried to build any C++ on an Atari (not cross-compiling) ? > > > > Peter > I was curious if C++ apps could be ported to mint. It probably depends a lot on available libs. I managed to write hello-world.cpp and compile and link it with gcc. It was a lot easier than I thought. I had expected to find gcc-cpp binaries but gcc was able to compile it and I think it treated it as C++ I am no C++ expert, I've only ever used it for a few days about 10 years ago. Now to find some proper C++ and see if that can be built. Peter #include <stdio.h> int main() { printf ("hello c++ world\n\n"); for (int i=1; i <11; i++) { printf ("%d\n", i); } return 0; } # gcc -w -Wcomment -m68040 -funsigned-char -fomit-frame-pointer -O2 -fstrength-reduce -fno-strict-aliasing -c hello.cpp -o hello.o # gcc -o hello.app hello.o -m68040 -funsigned-char -fomit-frame-pointer -O2 -fstrength-reduce -fno-strict-aliasing # ./hello.app |