I hope the original poster has been able to successfully use LAPACK.

Wether a matrix is square or rectangular has nothing to do with the leading dimension. The leading dimension is necessary if...