Last year's attempt http://forums.vega-strike.org/viewtopic.php?f=5&t=17719 wasn't overall very successful, and it eventually petered off without producing an actual executable. Can we do better this year?
Here's the setup.
1. Freshly installed Win7. No traces of old compilers or libraries left around.
2. installed mingw (mingw-get-inst-20120426), upgrading packages to all the most recent versions while installing. Se3lected to also install Msys along with the C and C++ compilers.
3. Installed Code::Blocks 10.05 with all plugins
4. Installed Cmake 2.8.10.1 (I don't intend to use it, but just in case)
5. checked out vegastrike and vega-vc9 as of revision 13449
6. imported vegastrike.sln from vega-vc9 into Code::Blocks (configured to use mingw as default compiler)
7. quick look at the project to make sure something obvious isn't wrong, all recent files are included, etc.
8. made vegastrike project active, and selected release/win32 configuration
9.build
10. ??
11. profit - ?! Not really.
Actually at 10 I get:
10. first error crops.
Code: Select all
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|82|error: 'stdext' does not name a type|
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|83|error: 'FileLookupCache' was not declared in this scope|
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|83|error: 'cache' was not declared in this scope|
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|83|error: expected primary-expression before 'const'|
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|83|error: expected primary-expression before 'type'|
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|83|error: expression list treated as compound expression in initializer [-fpermissive]|
C:\games\vegastrike\mingw-work\vegastrike\src\vsfilesystem.h|131|error: 'stdext' does not name a type|
Code: Select all
typedef vsUMap< string, VSError > FileLookupCache;
VSError CachedFileLookup( FileLookupCache &cache, const string &file, VSFileType type );
(edit2) google to the rescue! It seems that actually I have hit the same problem before myself, at least twice.
http://forums.vega-strike.org/viewtopic.php?f=5&t=15265
http://forums.vega-strike.org/viewtopic ... 9&start=25
Let me refresh my memory and see if I can remember the fix.
(edit3) Hmm it seems that the current source does include the fix from last year when I came across this problem... Quote from src/gnuhash.h
Code: Select all
#ifdef _WIN32
#ifdef HAVE_TR1_UNORDERED_MAP
#if defined(_MSC_VER) && _MSC_VER >= 1600
#include <unordered_map> //MSVC doesn't use tr1 dirs
#else
#include <tr1/unordered_map>
#endif
(edit4) Even if I force the inclusion of tr1/unordered_map I still get the same error.