20 December 2017, 19:56 | #1 |
Registered User
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
|
Postal - Port to the Amiga - is there a decent C++ compiler ?
One of my favorite games is Postal by Running With Scissors. Its recently opened sourced and an ideal candidate for an Amiga port!
https://bitbucket.org/gopostal/postal-1-open-source I can easily port Postal to the Amiga. I have even refactored all the SDL2 calls to SDL 1.2. I tested this with a quick original Xbox port that runs well using controllers and SDL1.2 - for a sneak peek (at 8:36 or so) - [ Show youtube player ] The problem with the Amiga port is this code is all C++ and makes substantial use of STL (Standard Template Library) which isnt supported by any C++ compiler ive tried. AmiDevCPP gives errors on <map> Krystian Bacławski gcc gives me a constructor error the closest ive gotten is beebos gcc/g++ 6.3.1b and that returns the following error Code:
m68k-amigaos-g++ -c -o bin/AnimThing.o AnimThing.cpp -std=c++11 -m68020 -ffast-math -DAMIGA -DSYS_ENDIAN_BIG -fsigned-char -DPLATFORM_UNIX -w -DLOCALE=US -DTARG ET=POSTAL_2015 -I. -I./SDL2/include -I./RSPiX -I./RSPiX/Inc -I./RSPiX/Src -I./RS PiX/Src/BLUE -I./RSPiX/Src/BLUE/unix -I./RSPiX/Src/CYAN -I./RSPiX/Src/CYAN/Unix -I./RSPiX/Src/ORANGE -I./RSPiX/Src/ORANGE/CDT -I./RSPiX/Src/ORANGE/GameLib -I./R SPiX/Src/ORANGE/File -I./RSPiX/Src/ORANGE/Multigrid -I./RSPiX/Src/GREEN/Image -I ./WishPiX -I./WishPiX/Spry -DALLOW_TWINSTICK -DNDEBUG -D_NDEBUG -O2 In file included from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ ext/string_conversions.h:43:0, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ bits/basic_string.h:5417, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ string:52, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ stdexcept:39, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ array:39, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ tuple:39, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ bits/stl_map.h:63, from /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/ map:61, from WishPiX/ResourceManager/resmgr.h:215, from game.h:124, from thing.h:270, from hood.h:109, from scene.h:180, from realm.h:324, from AnimThing.h:54, from AnimThing.cpp:73: /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/cstdio:176:11: error: ‘::vfscanf’ has not been declared using ::vfscanf; ^~~~~~~ /opt/m68k-amigaos/lib/gcc/m68k-amigaos/6.3.1b/include/c++/cstdio:186:22: error: ‘__gnu_cxx::vfscanf’ has not been declared using ::__gnu_cxx::vfscanf; ^~~~~~~ |
20 December 2017, 20:06 | #2 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
I've got the same error with some project using gcc6.
in this case I switch to AmiDevCPP`s gcc3.4.0 - which sometimes helps, but may result in other errors. you may try to use one of the gcc options in your makefile: -noixemul or -mcrt=clib2 or -mcrt=nix13 maybe some other c++ standard may help: -std=c++03 instead of -std=c++11 perhaps one will work. Last edited by emufan; 20 December 2017 at 20:12. |
20 December 2017, 20:09 | #3 |
Registered User
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
|
i get errors with STL:map with AmiDevCpp. This is normally my compiler of choice.
None of those flags help either, im hoping someone can tell me of a C++ m68k compiler that has complete STL support |
20 December 2017, 20:15 | #4 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
|
20 December 2017, 20:24 | #5 |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 2,910
|
I thought the same thing, and had less luck with g++ 2.95.3.
|
01 January 2018, 12:40 | #6 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
Try g++ version 4.3.2 or 4.5.0
|
02 January 2018, 15:43 | #7 |
Registered User
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
|
|
02 January 2018, 23:30 | #8 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
On amiga sourceforge.
|
03 January 2018, 20:28 | #9 |
dev
|
|
04 March 2018, 18:42 | #10 | |
bye
Join Date: Jun 2016
Location: Some / Where
Posts: 680
|
Quote:
|
|
08 March 2018, 23:34 | #11 |
Registered User
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
|
hi beebo, i will give it a try
thanks! |
09 March 2018, 20:56 | #12 |
Registered User
Join Date: Feb 2013
Location: Olathe, Kansas
Posts: 214
|
this compiler works much nicer, thanks Beebo !
|
14 August 2020, 13:47 | #13 |
Registered User
Join Date: Mar 2017
Location: London
Posts: 125
|
Hi, regular watcher of your Utube channel
I am surprised there wasnt more interest in this 2 years ago, I have not played this one but Im a huge fan of Postal 2 all extras and the new Postal 4: No Regerts We wont go into Postal 3 (Mistakes were made) So everyone else knows what makes these games so much fun [ Show youtube player ] Was there too much C++ to convert over to Amiga or other projects took over as you are a pretty busy guy! All the best, J. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Are there any decent Amiga stores??? | th4t1guy | Amiga scene | 20 | 01 October 2022 20:41 |
Postal gone Open Source | Shoonay | Retrogaming General Discussion | 1 | 29 December 2016 15:35 |
Any decent Amiga IDE? | commodorejohn | Coders. General | 14 | 22 May 2013 22:37 |
amiga c/c++ compiler | Fissuras | request.Apps | 41 | 18 June 2012 20:50 |
Best C Compiler for Amiga is? | Pyromania | Amiga scene | 5 | 14 May 2002 17:17 |
|
|