Incompatible function argument list between header and shared lib doesn’t crash my program, why?
When building my university project on two different machines I experienced issues with LAPACK and Intel’s implementation in MKL. I already figured out the main problem: I used the LAPACK headers from liblapacke-devel
which where differing between both machines. In one of the headers, each LAPACK function had two additional size_t
arguments at the end of the argument list, having sth. to do with the Fortran origin of LAPACK. Realizing that, and since I was linking against MKL anyways, I just decided to use the MKL headers instead which don’t differ in the argument lists.