![]() So clearly it's not compiling with C++ 11. CMake can always use a higher standard level if it deems it necessary to meet some constraint. Specifically right now I'd like to use to_string, and using it in the std namespace or specifically std::to_string creates the error "to_string" is not a member of STD. Whether you use targetcompilefeatures(myTarget PUBLIC cxxstd11) or you set CXXSTANDARD and CXXSTANDARDREQUIRED, both methods ultimately specify a minimum standard version, not an absolute one. generates errors that "xxx" was not declared in the scope. ![]() ![]() Please set CMAKECCOMPILER to a valid compiler path or name. Org/latest-release or through the standard Linux package managers such as apt-get. If you maintain projects that use a CMakeSettings.json file for CMake build configuration, Visual Studio 2019 and later versions provide a CMake settings editor. Call Stack (most recent call first): CMakeLists.txt:7 (project) CMake Error: your C compiler: 'C:/MinGW/bin/gcc' was not found. When building musl, there are 3 important flags to pass to configure. I did some searches and found other people with similar problems but I tried their solutions with no luck, so here goes:Ī simple c++ program that uses C++ 11 functionality such as uniform initialization, threads, to_string, etc. It fails with the following output: CMake will not be able to correctly generate this project. I'm new to C++ and have been struggling with compiling/making/linking/building/whatever, lets see if somebody can help me out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |