[問題] 關於繼承的問題
( *[1m *[m 為色碼,可以按 Ctrl+V 預覽會顯示的顏色 )
( 未必需要依照此格式,文章條理清楚即可 )
遇到的問題: (題意請描述清楚)
當編譯的時候,出現了多個參考,我該如果選擇其中一個?
希望得到的正確結果:
程式跑出來的錯誤結果:
PointTracker.h:11: error: reference to ‘exception’ is ambiguous
/usr/include/boost/exception/exception.hpp:177: error: candidates are: class
boost::exception
/usr/include/c++/4.4/exception:60: error: class
std::exception
PointTracker.h:11: error: reference to ‘exception’ is ambiguous
/usr/include/boost/exception/exception.hpp:177: error: candidates are: class
boost::exception
/usr/include/c++/4.4/exception:60: error: class
std::exception
make: *** [opengazer.o] Error 1
開發平台: (例: VC++ or gcc/g++ or Dev-C++, Windows or Linux)
Linux
有問題的code: (請善用置底文標色功能)
補充說明:
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.127.182.18
→
01/21 19:56, , 1F
01/21 19:56, 1F
→
01/22 06:58, , 2F
01/22 06:58, 2F
討論串 (同標題文章)