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

Tried porting MonaBase as CMakelist project and compiling with errors #36

Open
as-salam opened this issue Jun 15, 2020 · 0 comments
Open

Comments

@as-salam
Copy link

Hi I tried to create a CMake version of the MonaBase part of this project and I am getting the same error as follow:

Windows 10
Visual Studio 2017

2>Application.cpp
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(337): fatal error C1001: An internal error has occurred in the compiler.
2>(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)
2> To work around this problem, try simplifying or changing the program near the locations listed above.
2>Please choose the Technical Support command on the Visual C++
2> Help menu, or open the Technical Support help file for more information
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(349): note: see reference to class template instantiation 'Mona::is_container<Type>' being compiled
2>BinaryReader.cpp
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(337): fatal error C1001: An internal error has occurred in the compiler.
2>(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)
2> To work around this problem, try simplifying or changing the program near the locations listed above.
2>Please choose the Technical Support command on the Visual C++
2> Help menu, or open the Technical Support help file for more information
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(349): note: see reference to class template instantiation 'Mona::is_container<Type>' being compiled
2>BinaryWriter.cpp
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(337): fatal error C1001: An internal error has occurred in the compiler.
2>(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)
2> To work around this problem, try simplifying or changing the program near the locations listed above.
2>Please choose the Technical Support command on the Visual C++
2> Help menu, or open the Technical Support help file for more information
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(349): note: see reference to class template instantiation 'Mona::is_container<Type>' being compiled
2>BitReader.cpp
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(337): fatal error C1001: An internal error has occurred in the compiler.
2>(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)
2> To work around this problem, try simplifying or changing the program near the locations listed above.
2>Please choose the Technical Support command on the Visual C++
2> Help menu, or open the Technical Support help file for more information
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(349): note: see reference to class template instantiation 'Mona::is_container<Type>' being compiled
2>Buffer.cpp
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(337): fatal error C1001: An internal error has occurred in the compiler.
2>(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)
2> To work around this problem, try simplifying or changing the program near the locations listed above.
2>Please choose the Technical Support command on the Visual C++
2> Help menu, or open the Technical Support help file for more information
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(349): note: see reference to class template instantiation 'Mona::is_container<Type>' being compiled
2>BufferPool.cpp
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(337): fatal error C1001: An internal error has occurred in the compiler.
2>(compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)
2> To work around this problem, try simplifying or changing the program near the locations listed above.
2>Please choose the Technical Support command on the Visual C++
2> Help menu, or open the Technical Support help file for more information
2>C:\prog\c++\Mona\MonaBase\include\Mona/Mona.h(349): note: see reference to class template instantiation 'Mona::is_container<Type>' being compiled
2>Congestion.cpp

Why is this error?

@as-salam
Copy link
Author

@as-salam
Copy link
Author

Ok it seems that MonaBase is only working when it is outputted as a Microsoft Visual C++ 2015 project. When set to higher template it is not working at all with thousands of errors.

Why isn't MonaServer compiling with project template > 2015 ?

MonaBase is working well with CMakelists.txt on Windows.

@as-salam
Copy link
Author

That error was fixed with the latest Visual Studio Community 2019 version.
Now the generated project is working with 2015, 2019.

@as-salam
Copy link
Author

Ok perfect the MonaBase project is compiling perfectly as a static library via vcpkg & Microsoft Visual Studio 2019 with automatic includes & libs detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant