Hi everyone,
I'm a physics student and I've written a program for my honours thesis using lapack. I've been using C++ since vectors are very for organizing the large amount of calculated output my program generates.
1) I want to be able to run my program on the school machine. The program will compile fine both my personal computer and the school computer, but it won't execute on the school's machine. Regardless of which machine the code is compiled on, when I run the executable on my machine I get the output as expected and on the school's machine I simply get the error "Illegal instruction".
-I #include "f2c.h" and "clapack.h".
-I compile using "g++ GateFinder.cpp -llapack -lblas"
-My calls to lapack functions look like this, for example: " zaxpy_(&SizeOfMatricesSquared, &cone,IdentityMatrixCosX, &ione, LHS, &ione);"
With variables: integer ione = 1; doublecomplex cone = {1,0}; integer SizeOfMatricesSquared = 64; doublecomplex LHS[SizeOfMatricesSquared]; doublecomplex IdentityMAtrixCosX[SizeOfMatricesSquared];
I make use of ZGEMM, ZAXPY, ZGESV, and ZGELSD throughout the program.
Any thoughts on this would be very appreciated. If you need more details on my code, I can start trying to extract the troublesome sections.
2) I'm wondering why I need to include "f2c.h" and "clapack.h". I don't see others doing this, yet my program won't compile without them. For example, under "Using LAPACK the Hard Way" on seehuhn.de/pages/linear he does not include these files, and doesn't require any additional libraries on his compile line.
3) For some reason I have to use the type "integer" instead of "int", or else the program won't compile. Any thoughts?
I've been trying to dig through google results for LAPACK, but I can't seem to figure these problems out. I very much appreciate any insight that anyone can offer on any of these problems.
-Ben

