阅读背景:

编译错误:error: default argument given for parameter 1 of ‘’ [-fpermissive]

来源:互联网 

问题:

编译时出现错误提示如下:

u1204@u1204-zhw:~/hwsvn/2sw/4prj_mips/UCP_rt5350/src/trunk$ make
g++ -g3 -Wall -o0 -c ini_file.cpp -o ini_file.o
ini_file.cpp:17:117: error: default argument given for parameter 1 of ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.h:15:14: error: after previous specification in ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.cpp:17:117: error: default argument given for parameter 2 of ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.h:15:14: error: after previous specification in ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.cpp:17:117: error: default argument given for parameter 3 of ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.h:15:14: error: after previous specification in ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.cpp:17:117: error: default argument given for parameter 4 of ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
ini_file.h:15:14: error: after previous specification in ‘IniFile::IniFile(const string&, std::string, std::string, std::string)’ [-fpermissive]
make: *** [ini_file.o] Error 1
1204@u1204-zhw:~/hwsvn/2sw/4prj_mips/UCP_rt5350/src/trunk$u1204@u1204-zhw:~/hwsvn



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: