error while compilation

error while compilation

Postby ammalik » Fri Jan 10, 2014 10:37 am

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..
ammalik
 
Posts: 2
Joined: Fri Jan 10, 2014 10:08 am

Return to Classic PAPI

Who is online

Users browsing this forum: No registered users and 2 guests

cron