[英]Undeclared identifiers in C
我一直在嘗試編譯使用PCL的程序。 但是,我不斷收到此錯誤:
test.c:23: error: ‘PCL_CNT_TYPE’ undeclared (first use in this function)
test.c:23: error: (Each undeclared identifier is reported only once
test.c:23: error: for each function it appears in.)
test.c:23: error: expected ‘;’ before ‘i_result_list1’
test.c:24: error: ‘PCL_FP_CNT_TYPE’ undeclared (first use in this function)
test.c:24: error: expected ‘;’ before ‘fp_result_list1’
test.c:27: error: ‘PCL_L1DCACHE_MISS’ undeclared (first use in this function)
test.c:28: error: ‘PCL_L2CACHE_MISS’ undeclared (first use in this function)
test.c:30: error: ‘PCL_MODE_USER’ undeclared (first use in this function)
test.c:33: error: ‘PCL_SUCCESS’ undeclared (first use in this function)
test.c:47: error: ‘i_result_list2’ undeclared (first use in this function)
test.c:47: error: ‘fp_result_list2’ undeclared (first use in this function)
有什么想法嗎?
我的機器上安裝了libpcl1 {-dev},所以我想知道要使此功能有效還需要什么。
如果您需要進一步的信息,請告訴我。
謝謝。
放:
#include <pcl.h>
在文件的頂部。 鏈接時,您還將需要-lpcl
。 例如:
gcc program.c -lpcl -o program
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.