osmanip: Unable to compile examples and tests on MSVC (error got from CodeQL analysis workflow)
Hi @joeletho ,
I set up the CMake building process, but an error occurs when trying to compile with MSVC and it seems it is related to output_redirector.cpp. As you can see from running the CodeQL workflow for Windows, this error occurs:
D:\a\osmanip\osmanip\src\utility\output_redirector.cpp(76,4): error C2512: 'std::basic_ostream<char,std::char_traits<char>>': no appropriate default constructor available [D:\a\osmanip\osmanip\build\osmanip.vcxproj]
and subsequently:
D:\a\osmanip\osmanip\src\utility\output_redirector.cpp(73,13): error C2665: 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string': no overloaded function could convert all the argument types [D:\a\osmanip\osmanip\build\osmanip.vcxproj]
Do you have any idea of what’s happening? Could you please investigate this issue and try to fix it? Thanks.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (21 by maintainers)
Hi @JustWhit3,
I hope you had a good holiday!
I have put some hours into this issue and I can’t seem to figure out what is going on.
doctestis giving me the most grief. However, I feel like the underlying issue is the real problem. Here is the log output:If you read the error after attempting to fetch
doctest, CMake seems to be having trouble differentiating betweendoctest’s CMakeCache andosmanip’s ` CMakeCache. This error is thrown from the following block fromdeps/doctest/CMakeLists.txt:This also happens to
arsenalgearwhether it is installed or not.So, I think the issue boils down to a problem with the code in the
CMakeLists.txtscript or a problem with the pathing. I cannot get any resolve when experimenting with and setting/appending paths, CMake never findsarsenalgearordoctesteven though both have been fetched and can be found in thebuild/_deps. Do you have any ideas?Hi @JustWhit3,
I will do some investigating and see what I can find. It may be a few days, but I will let know what I find.
Hi @joeletho, I thought so too, but even after reinstalling
arsenalgearthe problem still occurred. Could it be a pathing to the install directory? It will be different on Windows than on Linux.And yes,
output_redirectorhas been corrected.