2016-06-20 52 views
0

我嘗試用gcc來編譯我的C代碼(它調用Python函數,所以我要鏈接到Python庫)與下面的行未定義的參考`_intel_fast_memmove」和'__libm_flt_rounds'

gcc main.c -o main.x -I/share/apps/intel/intelpython27/include/python2.7 
-L/share/apps/intel/intelpython27/lib -lpython2.7 
-Wl,-rpath=/share/apps/intel/2013/composer_xe_2013.1.117/compiler/lib/mic/ 

但得到了以下錯誤:

/share/apps/intel/intelpython27/lib/libpython2.7.so: undefined reference to `_intel_fast_memmove' 
/share/apps/intel/intelpython27/lib/libpython2.7.so: undefined reference to `__libm_flt_rounds' 
collect2: error: ld returned 1 exit status 

有人能告訴我什麼可能出錯嗎?我也是編程初學者,所以如果有任何我應該提供的額外細節,請讓我知道。

+0

這可能是沒有意義的使用GCC來構建對英特爾MIC協處理器庫鏈接的應用程序。 – tim18

回答

1

這些符號可能在這些庫的一個定義: -lm -limf -lirc