I am working on understanding a fellow physicist's code in C that uses Lapack, which I have never used before. I used sudo apt-get to install lapack. and I've been compiling with
gcc -llapack Dirac.c -o Dirac -lm
and I'm getting the compiling error "undefined reference to 'zheev'" I know zheev is a function in lapack, so I'm figuring something went wrong with the install or something is not in the right place. Can someone please explain if i need to do some kind of linking or where i need to save things to get this to compile? I apologize if this is a noob question.