Moi Magnus
Emperor
- Joined
- Mar 1, 2015
- Messages
- 1,868
I've never done .dll mods before, and decided to try.
I've download the last version of Visual C++, and followed this : https://forums.civfanatics.com/threads/how-to-compile-the-dll.479374/
However, I still can't compile the unmodded dll:
I first had to add "_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1;_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1;" to the preprocessing, but it still fail completly:
1>------ Build started: Project: CvGameCoreDLL, Configuration: Mod Win32 ------
2>------ Build started: Project: CvGameCoreDLL_Expansion1, Configuration: Mod Win32 ------
3>------ Build started: Project: CvGameCoreDLL_Expansion2, Configuration: Mod Win32 ------
1>_precompile.cpp
1>c:\users\marc\source\repos\cvgamecoresource\fireplace\include\fireworks\FMemHooks.h(59): warning C4091: 'typedef ': ignored on left of 'eMPoolType' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2039: 'auto_ptr': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\unordered_map(15): note: see declaration of 'std'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1873): note: see reference to class template instantiation 'CvEnumerator<T>' being compiled
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvUnit.h(1077): warning C4091: 'typedef ': ignored on left of 'CvUnit::Flags' when no variable is declared
3>_precompile.cpp
3>c:\users\marc\source\repos\cvgamecoresource\fireplace\include\fireworks\FMemHooks.h(59): warning C4091: 'typedef ': ignored on left of 'eMPoolType' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(142): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(142): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(142): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(145): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(145): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(148): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(148): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(148): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(151): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(151): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(151): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(153): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(153): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvBuilderTaskingAI.h(33): warning C4091: 'typedef ': ignored on left of 'BuilderDirective::BuilderDirectiveType' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvCityConnections.h(57): warning C4091: 'typedef ': ignored on left of 'CvCityConnections::RouteState' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvCityConnections.h(96): warning C4091: 'typedef ': ignored on left of 'CvCityConnections:
lotRouteState' when no variable is declared
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2039: 'auto_ptr': is not a member of 'std'
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\unordered_map(15): note: see declaration of 'std'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1873): note: see reference to class template instantiation 'CvEnumerator<T>' being compiled
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvUnit.h(1254): warning C4091: 'typedef ': ignored on left of 'CvUnit::Flags' when no variable is declared
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(156): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(156): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(159): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(159): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(162): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(162): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(165): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(165): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(167): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(167): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(167): error C2238: unexpected token(s) preceding ';'
2>_precompile.cpp
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvBuilderTaskingAI.h(33): warning C4091: 'typedef ': ignored on left of 'BuilderDirective::BuilderDirectiveType' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\fireplace\include\fireworks\FMemHooks.h(59): warning C4091: 'typedef ': ignored on left of 'eMPoolType' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2039: 'auto_ptr': is not a member of 'std'
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\unordered_map(15): note: see declaration of 'std'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1873): note: see reference to class template instantiation 'CvEnumerator<T>' being compiled
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2238: unexpected token(s) preceding ';'
1>Done building project "CvGameCoreDLL.vs2013.vcxproj" -- FAILED.
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvCityConnections.h(57): warning C4091: 'typedef ': ignored on left of 'CvCityConnections::RouteState' when no variable is declared
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvCityConnections.h(96): warning C4091: 'typedef ': ignored on left of 'CvCityConnections:
lotRouteState' when no variable is declared
3>Done building project "CvGameCoreDLL_Expansion2.vs2013.vcxproj" -- FAILED.
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvUnit.h(1176): warning C4091: 'typedef ': ignored on left of 'CvUnit::Flags' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(147): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(147): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(147): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(150): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(150): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(150): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(153): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(153): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(156): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(156): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(158): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(158): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvBuilderTaskingAI.h(33): warning C4091: 'typedef ': ignored on left of 'BuilderDirective::BuilderDirectiveType' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvCityConnections.h(57): warning C4091: 'typedef ': ignored on left of 'CvCityConnections::RouteState' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvCityConnections.h(96): warning C4091: 'typedef ': ignored on left of 'CvCityConnections:
lotRouteState' when no variable is declared
2>Done building project "CvGameCoreDLL_Expansion1.vs2013.vcxproj" -- FAILED.
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
My first guess is that I should install the 2013 version of Visual C++ instead of the 2017 version, but can someone more experimented confirm this ?
Thank you
I've download the last version of Visual C++, and followed this : https://forums.civfanatics.com/threads/how-to-compile-the-dll.479374/
However, I still can't compile the unmodded dll:
I first had to add "_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1;_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1;" to the preprocessing, but it still fail completly:
Spoiler :
1>------ Build started: Project: CvGameCoreDLL, Configuration: Mod Win32 ------
2>------ Build started: Project: CvGameCoreDLL_Expansion1, Configuration: Mod Win32 ------
3>------ Build started: Project: CvGameCoreDLL_Expansion2, Configuration: Mod Win32 ------
1>_precompile.cpp
1>c:\users\marc\source\repos\cvgamecoresource\fireplace\include\fireworks\FMemHooks.h(59): warning C4091: 'typedef ': ignored on left of 'eMPoolType' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2039: 'auto_ptr': is not a member of 'std'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\unordered_map(15): note: see declaration of 'std'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1873): note: see reference to class template instantiation 'CvEnumerator<T>' being compiled
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvUnit.h(1077): warning C4091: 'typedef ': ignored on left of 'CvUnit::Flags' when no variable is declared
3>_precompile.cpp
3>c:\users\marc\source\repos\cvgamecoresource\fireplace\include\fireworks\FMemHooks.h(59): warning C4091: 'typedef ': ignored on left of 'eMPoolType' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(142): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(142): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(142): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(145): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(145): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(148): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(148): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(148): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(151): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(151): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(151): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(153): error C2143: syntax error: missing ';' before '<'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvGlobals.h(153): error C2238: unexpected token(s) preceding ';'
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvBuilderTaskingAI.h(33): warning C4091: 'typedef ': ignored on left of 'BuilderDirective::BuilderDirectiveType' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvCityConnections.h(57): warning C4091: 'typedef ': ignored on left of 'CvCityConnections::RouteState' when no variable is declared
1>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll\CvCityConnections.h(96): warning C4091: 'typedef ': ignored on left of 'CvCityConnections:

3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2039: 'auto_ptr': is not a member of 'std'
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\unordered_map(15): note: see declaration of 'std'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1873): note: see reference to class template instantiation 'CvEnumerator<T>' being compiled
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvUnit.h(1254): warning C4091: 'typedef ': ignored on left of 'CvUnit::Flags' when no variable is declared
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(156): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(156): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(159): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(159): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(162): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(162): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(165): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(165): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(165): error C2238: unexpected token(s) preceding ';'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(167): error C2143: syntax error: missing ';' before '<'
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(167): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvGlobals.h(167): error C2238: unexpected token(s) preceding ';'
2>_precompile.cpp
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvBuilderTaskingAI.h(33): warning C4091: 'typedef ': ignored on left of 'BuilderDirective::BuilderDirectiveType' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\fireplace\include\fireworks\FMemHooks.h(59): warning C4091: 'typedef ': ignored on left of 'eMPoolType' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2039: 'auto_ptr': is not a member of 'std'
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\unordered_map(15): note: see declaration of 'std'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamedatabase\include\Database.h(178): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1873): note: see reference to class template instantiation 'CvEnumerator<T>' being compiled
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredllutil\include\CvDllInterfaces.h(1872): error C2238: unexpected token(s) preceding ';'
1>Done building project "CvGameCoreDLL.vs2013.vcxproj" -- FAILED.
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvCityConnections.h(57): warning C4091: 'typedef ': ignored on left of 'CvCityConnections::RouteState' when no variable is declared
3>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion2\CvCityConnections.h(96): warning C4091: 'typedef ': ignored on left of 'CvCityConnections:

3>Done building project "CvGameCoreDLL_Expansion2.vs2013.vcxproj" -- FAILED.
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvUnit.h(1176): warning C4091: 'typedef ': ignored on left of 'CvUnit::Flags' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(147): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(147): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(147): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(150): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(150): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(150): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(153): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(153): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(156): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(156): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(158): error C2143: syntax error: missing ';' before '<'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvGlobals.h(158): error C2238: unexpected token(s) preceding ';'
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvBuilderTaskingAI.h(33): warning C4091: 'typedef ': ignored on left of 'BuilderDirective::BuilderDirectiveType' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvCityConnections.h(57): warning C4091: 'typedef ': ignored on left of 'CvCityConnections::RouteState' when no variable is declared
2>c:\users\marc\source\repos\cvgamecoresource\cvgamecoredll_expansion1\CvCityConnections.h(96): warning C4091: 'typedef ': ignored on left of 'CvCityConnections:

2>Done building project "CvGameCoreDLL_Expansion1.vs2013.vcxproj" -- FAILED.
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
My first guess is that I should install the 2013 version of Visual C++ instead of the 2017 version, but can someone more experimented confirm this ?
Thank you