From 3b27b21e345b7fcb19a82fc23b3d9714ddb3a5ab Mon Sep 17 00:00:00 2001 From: sauron Date: Mon, 25 Aug 2025 20:32:32 +0900 Subject: [PATCH] commit 2025-08-25 20:32 to utf8 : ZCppMainTest/c++_test_000.cpp --- ZCppMainTest/c++_test_000.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ZCppMainTest/c++_test_000.cpp b/ZCppMainTest/c++_test_000.cpp index 53a5da2..9d10246 100644 --- a/ZCppMainTest/c++_test_000.cpp +++ b/ZCppMainTest/c++_test_000.cpp @@ -1,4 +1,4 @@ - + #include @@ -22,23 +22,23 @@ int main(int AI_ArgCnt, char* APP_ArgVal[])*/ /*################################################################################ - mingw +■ mingw 컴파일 g++ -o c++_test_000.exe c++_test_000.cpp -I../ - linux +■ linux 컴파일 g++ -o c++_test_000.exe c++_test_000.cpp -I../ sauron@q381-2673:/mnt/e/my_CPP/ZCpp/ZCppMainTest$ g++ -o c++_test_000.exe c++_test_000.cpp -I../ - c++_test_000.cpp: In function int main(int, char**): - c++_test_000.cpp:18:28: error: invalid conversion from char** to const char** [-fpermissive] + c++_test_000.cpp: In function ‘int main(int, char**)’: + c++_test_000.cpp:18:28: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] 18 | return Main(AI_ArgCnt, APP_ArgVal); | ^~~~~~~~~~ | | | char** - c++_test_000.cpp:9:39: note: initializing argument 2 of int Main(int, const char**) + c++_test_000.cpp:9:39: note: initializing argument 2 of ‘int Main(int, const char**)’ 9 | int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0) | ~~~~~~~~~~~~^~~~~~~~~~~~~~