[求救] 在mac mini上編譯程式

看板MAC作者 (Schwarm)時間13年前 (2013/03/20 08:31), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
想請教一下有沒有人曾在mac上使用過「allpaths-lg」這套程式? 這是該網站的連結:http://www.broadinstitute.org/software/allpaths-lg/blog/ 它需要由原始碼自行編譯。 我試著在我的mac mini server上執行它,但總會遇到問題, 它提到需要有gcc47以上版本,我用macport把gcc更新成為GNU版的gcc47, 這點沒問題。 但當我執行完configure後,要再執行make時, 就會出現如下的錯誤訊息(這是部分), /opt/local/include/gcc47/c++/cstring:77:11: error: '::memchr' has not been declared /opt/local/include/gcc47/c++/cstring:78:11: error: '::memcmp' has not been declared /opt/local/include/gcc47/c++/cstring:79:11: error: '::memcpy' has not been declared /opt/local/include/gcc47/c++/cstring:80:11: error: '::memmove' has not been declared /opt/local/include/gcc47/c++/cstring:81:11: error: '::memset' has not been declared /opt/local/include/gcc47/c++/cstring:82:11: error: '::strcat' has not been declared /opt/local/include/gcc47/c++/cstring:83:11: error: '::strcmp' has not been declared /opt/local/include/gcc47/c++/cstring:84:11: error: '::strcoll' has not been declared /opt/local/include/gcc47/c++/cstring:85:11: error: '::strcpy' has not been declared /opt/local/include/gcc47/c++/cstring:86:11: error: '::strcspn' has not been declared /opt/local/include/gcc47/c++/cstring:87:11: error: '::strerror' has not been declared /opt/local/include/gcc47/c++/cstring:88:11: error: '::strlen' has not been declared /opt/local/include/gcc47/c++/cstring:89:11: error: '::strncat' has not been declared /opt/local/include/gcc47/c++/cstring:90:11: error: '::strncmp' has not been declared /opt/local/include/gcc47/c++/cstring:91:11: error: '::strncpy' has not been declared /opt/local/include/gcc47/c++/cstring:92:11: error: '::strspn' has not been declared /opt/local/include/gcc47/c++/cstring:93:11: error: '::strtok' has not been declared /opt/local/include/gcc47/c++/cstring:94:11: error: '::strxfrm' has not been declared /opt/local/include/gcc47/c++/cstring:95:11: error: '::strchr' has not been declared /opt/local/include/gcc47/c++/cstring:96:11: error: '::strpbrk' has not been declared /opt/local/include/gcc47/c++/cstring:97:11: error: '::strrchr' has not been declared /opt/local/include/gcc47/c++/cstring:98:11: error: '::strstr' has not been declared 除了這部分外,還有一個出現頻率很高的錯誤訊息: error: 'memcpy' was not declared in this scope 不知道有沒有曾試過在mac使用它?我在網路上找到的相關資訊是提到應該在 檔案開頭加上 #include <string.h> 或 <cstring> , 這部分是否應該加在Makefile裡?(我不會寫c語言程式 @@) 我有在mac裡藉由parallel desktop安裝fedora 18, 在fedora裡安裝這個程式就沒什麼問題, 還是我只能乖乖認命用parallel desktop來執行這些(這類)程式。 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.184.134

03/20 11:25, , 1F
不是加在Makefile,要加在有使用的檔案開頭
03/20 11:25, 1F
文章代碼(AID): #1HIGDyxe (MAC)