本文发表在 rolia.net 枫下论坛bash-3.00# /usr/local/bin/g++ -Wall -O2 -D_UNIX -D_POSIX -DAIX -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/unixODBC/include -I/root/hiplinkxs/src/hllib/include -I/root/hiplinkxs/src/hldblib/include -I/root/hiplinkxs/src/hldblib/rdb/include -I/root/hiplinkxs/src/hldblib/sdb/include -I/root/hiplinkxs/src/hldblib/rdb/odbc/include -c ../rdb/src/HLRDBschedulableGroup.cpp
../rdb/src/HLRDBschedulableGroup.cpp: In member function 'virtual long unsigned int HLRDBschedulableGroup::AddSchedule(HL_ONDUTY_SCHEDULE*)':
../rdb/src/HLRDBschedulableGroup.cpp:726: error: call of overloaded 'HLstringSQLEncode(long int&)' is ambiguous
/root/hiplinkxs/src/hllib/include/HLlibShare.h:125: note: candidates are: std::string HLstringSQLEncode(const std::string&) <near match>
/root/hiplinkxs/src/hllib/include/HLlibShare.h:156: note: std::string HLstringSQLEncode(time_t)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:135: note: std::string HLstringSQLEncode(float)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:140: note: std::string HLstringSQLEncode(double)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:145: note: std::string HLstringSQLEncode(unsigned int)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:150: note: std::string HLstringSQLEncode(long unsigned int)
在文件/root/hiplinkxs/src/hllib/include/HLlibShare.h的150行,实际函数定义是这样的:
std::string HLstringSQLEncode(unsigned long data);
我是C++加AIX双料菜鸟,虚心求教.更多精彩文章及讨论,请光临枫下论坛 rolia.net
../rdb/src/HLRDBschedulableGroup.cpp: In member function 'virtual long unsigned int HLRDBschedulableGroup::AddSchedule(HL_ONDUTY_SCHEDULE*)':
../rdb/src/HLRDBschedulableGroup.cpp:726: error: call of overloaded 'HLstringSQLEncode(long int&)' is ambiguous
/root/hiplinkxs/src/hllib/include/HLlibShare.h:125: note: candidates are: std::string HLstringSQLEncode(const std::string&) <near match>
/root/hiplinkxs/src/hllib/include/HLlibShare.h:156: note: std::string HLstringSQLEncode(time_t)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:135: note: std::string HLstringSQLEncode(float)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:140: note: std::string HLstringSQLEncode(double)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:145: note: std::string HLstringSQLEncode(unsigned int)
/root/hiplinkxs/src/hllib/include/HLlibShare.h:150: note: std::string HLstringSQLEncode(long unsigned int)
在文件/root/hiplinkxs/src/hllib/include/HLlibShare.h的150行,实际函数定义是这样的:
std::string HLstringSQLEncode(unsigned long data);
我是C++加AIX双料菜鸟,虚心求教.更多精彩文章及讨论,请光临枫下论坛 rolia.net