commit 2025-08-25 00:58 edit a bit ZCppMain/ZMainHead.H

This commit is contained in:
2025-08-25 00:58:34 +09:00
parent 48121102bb
commit f3ce568dc5

View File

@ -4383,23 +4383,11 @@ namespace ZNsCPP */
-- 2013-06-23 19:34:00 -- 2013-06-23 19:34:00
■ mingw 의 g++ 에서 아래 코드가 오류다. ■ mingw 의 g++ 에서 아래 파일 컴파일에서
ZCppMainTest/ZtCLoadXml_000.cpp
#incldue<iostream> 오류가 발생한다.
using namespace std;
int Main(int AI_RrgCnt, const char* APP_ArgVal[]=0)
{
cout<<"Call Main()"<<endl; return 0;
}
int main(int AI_RrgCnt, char* APP_ArgVal[]=0)
{
return Main(AI_RrgCnt, APP_ArgVal);
}
Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest
# g++ --version # g++ --version
@ -4421,6 +4409,24 @@ namespace ZNsCPP */
16 | static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0) 16 | static int Main(int AI_ArgCnt=0, const char* APP_ArgVal[]=0)
| ~~~~~~~~~~~~^~~~~~~~~~~~~~ | ~~~~~~~~~~~~^~~~~~~~~~~~~~
희한한게, 아래로 컴파일하면 아무 문제 없다.
#incldue<iostream>
using namespace std;
int Main(int AI_RrgCnt, const char* APP_ArgVal[]=0)
{
cout<<"Call Main()"<<endl; return 0;
}
int main(int AI_RrgCnt, char* APP_ArgVal[]=0)
{
return Main(AI_RrgCnt, APP_ArgVal);
}
-- 2025-08-25 00:56
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/