fix: using filesystem must over c++17

This commit is contained in:
TaurusXin 2024-01-06 00:37:55 +08:00
parent bc77cffcd8
commit 6c39a38af6
2 changed files with 5 additions and 5 deletions

View File

@ -2,21 +2,21 @@ default:
@echo "Please choose a platform: linux, macos, win32" @echo "Please choose a platform: linux, macos, win32"
linux: linux:
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -std=c++17
strip ncmdump strip ncmdump
macos-intel: macos-intel:
clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -std=c++17
strip ncmdump strip ncmdump
macos-arm64:export CPATH=/opt/homebrew/include macos-arm64:export CPATH=/opt/homebrew/include
macos-arm64:export LIBRARY_PATH=/opt/homebrew/lib macos-arm64:export LIBRARY_PATH=/opt/homebrew/lib
macos-arm64: macos-arm64:
clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag clang++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -std=c++17
strip ncmdump strip ncmdump
win32: win32:
g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -Ltaglib/lib -Itaglib/include -static -O -municode g++ main.cpp cJSON.cpp aes.cpp ncmcrypt.cpp -o ncmdump -ltag -Ltaglib/lib -Itaglib/include -static -O -municode -std=c++17
strip ncmdump.exe strip ncmdump.exe
clean: clean:

View File

@ -99,7 +99,7 @@ int main(int argc, char **argv)
WideCharToMultiByte(CP_UTF8, 0, argv[i], -1, multiByteStr, multiByteStrSize, NULL, NULL); WideCharToMultiByte(CP_UTF8, 0, argv[i], -1, multiByteStr, multiByteStrSize, NULL, NULL);
fs::path path(multiByteStr); fs::path path(multiByteStr);
#else #else
fs::path path(arg); fs::path path(argv[i]);
#endif #endif
files.push_back(path); files.push_back(path);
} }