Page 1 of 1

error while compilation

PostPosted: Fri Jan 10, 2014 10:37 am
by ammalik
Hi:

I installed the latest version of PAPI on my machine. The installed stuff is in the "/home/PAPI/build" directory. I am getting the following error while compiling a very simple example:

gcc -I/home/PAPI/build/include -L/home/PAPI/build/lib/libpapi.a ./ex1.c
/tmp/ccsTAeF4.o: In function `main':
ex1.c:(.text+0x1f): undefined reference to `PAPI_library_init'
collect2: error: ld returned 1 exit status



Any comments.


Thanks
A..