当前位置: 技术问答>linux和unix
新手,求解编译错误
来源: 互联网 发布时间:2016-10-22
本文导语: Error 22: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 133 # Syntax error. ,const CAccAccount& cAcct ...
Error 22: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 133 # Syntax error.
,const CAccAccount& cAcct
^
Error 422: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 150 # 'AccAccountList' is used as a
type, but has not been defined as a type. Perhaps you meant 'TBsAccountList' as in "typedef vector
TBsAccountList" ["/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/pdef/t_bs_account_db.h", line 163].
AccAccountList m_listAccount;
^^^^^^^^^^^^^^
Error 186: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 35 # Left side of '.' requires a
class object; type found was 'int'.
m_listAccount.clear();
^^^^^^^^^^^^^
Error 186: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 40 # Left side of '.' requires a
class object; type found was 'int'.
{ m_listAccount.clear();
^^^^^^^^^^^^^
Error 182: "test.cpp", line 102 # "int main()" cannot access protected member "short CBatchWOff::owe_treatByDoneCode(otl_connect
&,const CAccWoffNotify &,long long &,basic_string
&,basic_string &,CBSErrorMsg &,short)".
nRet = objBatWoff.owe_treatByDoneCode(accdb,llDoneCode,strRegionCode,st
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning: 1 future errors were detected and ignored. Add a '+p' option to detect and fix them before they become fatal errors in a future release. Behavior of this ill-formed program is not guaranteed to match that of a well-formed program
gmake: *** [test.o] Error 2
,const CAccAccount& cAcct
^
Error 422: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 150 # 'AccAccountList' is used as a
type, but has not been defined as a type. Perhaps you meant 'TBsAccountList' as in "typedef vector
TBsAccountList" ["/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/pdef/t_bs_account_db.h", line 163].
AccAccountList m_listAccount;
^^^^^^^^^^^^^^
Error 186: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 35 # Left side of '.' requires a
class object; type found was 'int'.
m_listAccount.clear();
^^^^^^^^^^^^^
Error 186: "/data6/gujc/work/products/ngboss/aiboss/include/billmgnt/mgr/CPreWriteOff.h", line 40 # Left side of '.' requires a
class object; type found was 'int'.
{ m_listAccount.clear();
^^^^^^^^^^^^^
Error 182: "test.cpp", line 102 # "int main()" cannot access protected member "short CBatchWOff::owe_treatByDoneCode(otl_connect
&,const CAccWoffNotify &,long long &,basic_string
&,basic_string &,CBSErrorMsg &,short)".
nRet = objBatWoff.owe_treatByDoneCode(accdb,llDoneCode,strRegionCode,st
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning: 1 future errors were detected and ignored. Add a '+p' option to detect and fix them before they become fatal errors in a future release. Behavior of this ill-formed program is not guaranteed to match that of a well-formed program
gmake: *** [test.o] Error 2
|
aCC是HP平台的吧,应该也可以编译cpp程序啊
试试aCC -AA
试试aCC -AA
|
你不是用gcc编译的吧?
gcc只能编译c程序,应该使用g++编译cpp程序
gcc只能编译c程序,应该使用g++编译cpp程序