在mac mini上編譯程式 - MAC

By Valerie
at 2013-03-20T08:31
at 2013-03-20T08:31
Table of Contents
想請教一下有沒有人曾在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來執行這些(這類)程式。
謝謝。
--
Tags:
MAC
All Comments

By Ida
at 2013-03-24T19:48
at 2013-03-24T19:48
Related Posts
macbook小白副廠電池購買經驗分享

By Sarah
at 2013-03-20T01:11
at 2013-03-20T01:11
請問哪裡還能買PD8一年序號?

By Isla
at 2013-03-20T01:10
at 2013-03-20T01:10
USB是否會感染病毒的可能

By Doris
at 2013-03-20T00:41
at 2013-03-20T00:41
leopard底下的ichat

By Tracy
at 2013-03-19T19:14
at 2013-03-19T19:14
office word 分數裡的上下標

By Caitlin
at 2013-03-19T15:44
at 2013-03-19T15:44