[問題] 宣告問題?

看板C_and_CPP作者 (aris)時間9年前 (2014/09/08 16:44), 9年前編輯推噓0(003)
留言3則, 3人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Linux 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) Opencv 問題(Question): make後會出現 'salt' was not declared in this scope. 重複檢查與google類似問題數天後,目前都還沒有解決。 如果有大大願意幫忙,我會很感謝你! 程式碼(Code):(請善用置底文網頁, 記得排版) http://codepad.org/gVVuCjQ7 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.127.197.38 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1410165879.A.00F.html ※ 編輯: aris1008 (59.127.197.38), 09/08/2014 16:45:45

09/08 16:57, , 1F
int main前面加一行 void salt(cv::Mat &, int);
09/08 16:57, 1F

09/08 16:59, , 2F
函數或變數要用之前要先讓編譯器知道有這東西存在
09/08 16:59, 2F

09/08 17:36, , 3F
謝謝大大的幫忙,問題已解決!
09/08 17:36, 3F
文章代碼(AID): #1K3Mnt0F (C_and_CPP)