2016-08-05 150 views
-1

在使用此guide 編譯softiwarp的代碼時,在編譯內核目錄中的代碼時遇到以下錯誤。函數錯誤的隱式聲明

error: implicit declaration of function ‘remap_vmalloc_range’ 
error: implicit declaration of function ‘vmalloc’ 
error: implicit declaration of function ‘vmalloc_user’ 
error: implicit declaration of function ‘vfree’ 

這裏的任何人都可以幫助指導我,如何安裝與此功能相關的庫?我使用的是Ubuntu 16.04。

回答

0

這些函數在<linux/vmalloc.h>中聲明。你需要#include那個標題。

+0

嗨a3f,感謝您的快速回復,這確實解決了我的問題。如果我遇到類似錯誤的其他庫不包含錯誤,可以共享哪個目錄? –

+0

尋找功能通常有幫助。 – a3f