[問題] vector當作傳值的問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Windows Code::block
問題(Question):
我自訂義一個function以下是它的原型
int diffFunc(vector<double> &,vector<double> &)
但當我在其它的function中呼叫它時
出現undefined reference to `LegendreMethod::diffFunc(std::vector<double,
std::allocator<double> >&, std::vector<double, std::allocator<double> >&)'|
的錯誤,請問有什麼方法可以解決呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.251.55
推
05/05 13:23, , 1F
05/05 13:23, 1F
→
05/05 18:32, , 2F
05/05 18:32, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章