error while compilation
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..
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..