php1ic / inch

The Interactive Nuclear CHart
GNU General Public License v3.0
3 stars 2 forks source link

Compilation failure on MSVC #20

Closed php1ic closed 4 years ago

php1ic commented 4 years ago

After moving to using git submodules for catch and adding the fmt library, windows compilation now fails with:

"C:\projects\Build\inch.sln" (default target) (1) ->
       "C:\projects\Build\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->
       "C:\projects\Build\inch.vcxproj.metaproj" (default target) (5) ->
       "C:\projects\Build\inch.vcxproj" (default target) (9) ->
       (ClCompile target) -> 
         C:\projects\inch\src\main.cpp(51,16): error C2236: unexpected token 'struct'. Did you forget a ';'? [C:\projects\Build\inch.vcxproj]
         C:\projects\inch\src\main.cpp(51,25): error C2332: 'struct': missing tag name [C:\projects\Build\inch.vcxproj]
         C:\projects\inch\src\main.cpp(51,25): error C2027: use of undefined type 'main::<unnamed-tag>' [C:\projects\Build\inch.vcxproj]
         C:\projects\inch\src\main.cpp(52,16): error C2332: 'struct': missing tag name [C:\projects\Build\inch.vcxproj]
         C:\projects\inch\src\main.cpp(52,16): error C2059: syntax error: '.' [C:\projects\Build\inch.vcxproj]

GCC and clang compile without issue, not sure what the problem is with Visual Studio.

php1ic commented 4 years ago

This was fixed in eea93c6