推 mosquito520:喔喔...感謝指證...我在試試...220.133.140.180 01/01 01:39
※ 引述《mosquito520 (賣頻寬控制分享器)》之銘言:
: 他會出現如下的錯誤...
^^^^
: ../src/Parameters.h:138: warning: 'int hexStrVal(const char*)' defined but
^^^^^^^
: not used
: ../src/Parameters.h:143: warning: 'int getKwClassFromName(const char*)'
^^^^^^^
: defined but not used
: ../src/ScitillaComponent/UserDefineDialog.h:34: warning: 'int min(int, int)'
^^^^^^^
: defined but not used
: ../src/ScitillaComponent/UserDefineDialog.h:38: warning: 'int max(int, int)'
^^^^^^^
你根本沒有貼到錯誤訊息的本體啊,
有貼到的都是警告訊息,
貼 make 的錯誤訊息最忌諱的就是沒貼到重點,
看 make 的錯誤訊息也是一樣的狀況,
再往上拉吧 (有時候距離很遠)。
: defined but not used
: make: *** [Notepad_plus.o] Error 1
^^^^^^^
一般正確的做法是,
看到這邊有 Error 字樣出現,
應該往上找 error: 的字串,
而不是去看一堆有的沒的 warning: 字串,
這是指編譯別人的程式而言;
如果是自己寫的最好連一個 warning 都沒有,
一般而言我自己寫 code 會打開將 warning 視為 error 的選項,
不過依你目前貼出來的訊息來判斷,
這個選項應該是沒打開才對,
所以找找 error: 開頭的再來修正程式碼吧。
: D:\Dev-Cpp\npp.3.9.src\PowerEditor\gcc>
: 所以想請問一下...
: 是我使用的mingw版本不對?
: 還是我的方式錯誤呢?
: 在linux底下編譯東西都沒這些問題說= =...
: 所以麻煩有使用過的人是否能幫我回答一下?
: 感激~
--
Name: Tseng, Ling-hua E-mail Address: uranus@it.muds.net
School: National Tsing Hua University Department: Computer Science
Interesting: C++, Compiler, PL/PD, OS, VM, Large-scale software design
Researching: Software pipelining for VLIW architectures
Homepage: https://it.muds.net/~uranus
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.230.224.36
※ 編輯: tinlans 來自: 61.230.224.36 (12/31 20:58)