[問題] 請問statement is unreachable是什麼?

看板LinuxDev作者 (ephesians)時間18年前 (2007/05/08 20:08), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
我在HP叢集電腦寫C++平行程式, 用mpiCC編譯, 我看了mpiCC script的內容是判斷該用g++或是gcc編譯. 這不是重點. 程式包含了/opt/hpmpi/include/mpiCC.h檔頭, 內容是幫我把/opt/hpmpi/include/mpiCC/*.h include進來. 這也不是重點. 這樣編譯: mpiCC -o mpi_test main.cpp 它提出這樣的訊息: "/opt/hpmpi/include/mpiCC/comm_inln.h", line 660: warning: statement is unreachable if (MPI_NULL_COPY_FN != 0) { ^ "/opt/hpmpi/include/mpiCC/comm_inln.h", line 689: warning: statement is unreachable if (MPI_NULL_DELETE_FN != 0) { ^ main.o(.text+0x1c15): In function `MPI::Comm::Free( (void))': : undefined reference to `MPI::Comm::mpi_comm_map(void)' [blah, blah, and blah] statement is unreachable是什麼意思? 它是標頭檔冒出問題,我該怎麼解決? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.160.108.147 ※ 編輯: ephesians 來自: 218.160.108.147 (05/08 20:10) ※ 編輯: ephesians 來自: 218.160.108.147 (05/08 20:12)

05/09 12:37, , 1F
這個判斷不會做到..
05/09 12:37, 1F
文章代碼(AID): #16G6WXOk (LinuxDev)
文章代碼(AID): #16G6WXOk (LinuxDev)