Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>' on Windows 11 #170

Closed
fonziemedia opened this issue Dec 9, 2023 · 2 comments
Labels
archive Archived Issues bug Something isn't working

Comments

@fonziemedia
Copy link

fonziemedia commented Dec 9, 2023

Getting the below errors on Windows 11 when running 'scons' from the project root as instructed. Any ideas?

[Initial build] cl /Foextension\src\openvic-extension\singletons\GameSingleton.obj /c extension\src\openvic-extension\singletons\GameSingleton.cpp /TP /std:c++20 /nologo /utf-8 /Zc:preprocessor /MD /O2 /DTYPED_METHOD_BIND /DNOMINMAX /DWINDOWS_ENABLED /DDEBUG_ENABLED  /DDEBUG_METHODS_ENABLED /DNDEBUG /D_HAS_EXCEPTIONS=0 /Igodot-cpp\gdextension /Igodot-cpp\include /Igodot-cpp\gen\include /Iextension\deps\openvic-simulation\src /Iextension\deps\openvic-simulation\deps\openvic-dataloader\include /Iextension\deps\gli /Iextension\deps\gli\external /Iextension\src
[Initial build] scons: *** [extension\deps\openvic-simulation\src\openvic-simulation\military\Unit.windows.template_debug.x86_64.obj] Error 2
cl /Foextension\src\openvic-extension\singletons\LoadLocalisation.obj /c extension\src\openvic-extension\singletons\LoadLocalisation.cpp /TP /std:c++20 /nologo /utf-8 /Zc:preprocessor /MD /O2 /DTYPED_METHOD_BIND /DNOMINMAX /DWINDOWS_ENABLED /DDEBUG_ENABLED /DDEBUG_METHODS_ENABLED /DNDEBUG /D_HAS_EXCEPTIONS=0 /Igodot-cpp\gdextension /Igodot-cpp\include /Igodot-cpp\gen\include /Iextension\deps\openvic-simulation\src /Iextension\deps\openvic-simulation\deps\openvic-dataloader\include /Iextension\deps\gli /Iextension\deps\gli\external /Iextension\src
GameSingleton.cpp
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(176): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(176): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(178): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(178): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(180): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(180): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(182): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(182): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(184): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(184): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(188): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(188): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(190): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(190): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(192): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(192): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(194): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(194): note: The target type has no constructors
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(196): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>'
extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv/CsvGrammar.hpp(196): note: The target type has no constructors
LoadLocalisation.cpp
scons: *** [extension\deps\openvic-simulation\deps\openvic-dataloader\src\openvic-dataloader\csv\Parser.windows.template_debug.x86_64.obj] Error 2
scons: building terminated because of errors.

Let me know if you need any extra info from me. Thanks!

@fonziemedia fonziemedia changed the title Errors when running 'scones' on Windows 11 Errors when running 'scons' on Windows 11 Dec 9, 2023
@Spartan322 Spartan322 added the bug Something isn't working label Dec 19, 2023
@Spartan322
Copy link
Member

Spartan322 commented Dec 19, 2023

What version of MSVC and cl are you using? Does this issue still persist after #169?

@Spartan322 Spartan322 changed the title Errors when running 'scons' on Windows 11 error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ovdl::csv::grammar::ParseOptions<T>' on Windows 11 Jan 29, 2024
@Spartan322
Copy link
Member

Due to lack of response I am closing this issue and marking it as archived.

@Spartan322 Spartan322 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
@Spartan322 Spartan322 added the archive Archived Issues label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archive Archived Issues bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants