Код: Выделить всё
The procedure entry point _ZNKSt25__codevt_utf8_utf16_baselwE10do_unshiftERiPcS2_RS2_ could not be located in the dynamic link library C:\Users\rhysa\CLionProjects\CPP\cmake-build-debug\CPP.exe
Код: Выделить всё
cmake_minimum_required(VERSION 3.31)
project(CPP)
set(CMAKE_CXX_STANDARD 17)
add_executable(CPP src/main.cpp)
< /code>
Это код < /p>
#include
int main()
{
std::string filepath = __FILE__;
std::string dirpath = filepath.substr(0, filepath.rfind("/"));
std::filesystem::create_directory(dirpath + "/users");
return 0;
}
< /code>
Это параметры Cmake < /p>
-6 Ninja -DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=C:/Program Files/JetBrains/CLion 2025.1.2/bin/ninja/win/x64/ninja.exe
Подробнее здесь: https://stackoverflow.com/questions/796 ... -file-in-c
Мобильная версия