2010-09-22 7 views
0

J'ai essayé de compiler un programme utilisant PCL. Cependant, je continue d'obtenir cette erreur:Identificateurs non déclarés dans C

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) 

Des idées pourquoi?

J'ai libpcl1 {-dev} installé dans ma machine, donc je me demande quoi d'autre est nécessaire pour que cela fonctionne.

Si vous avez besoin d'informations supplémentaires, faites-le moi savoir.

Merci.

Répondre

2

Put:

#include <pcl.h> 

en haut du fichier. Vous aurez également besoin de -lpcl lors de la liaison. E.g .:

gcc program.c -lpcl -o program 
Questions connexes