On Thu, 21 Jan 2010 09:17:22 -0600, Mark Moll <[email protected]> wrote:
> You *can* use the Fortran BLAS/LAPACK libraries with C/C++ code.

Yes, this is actually very common, but check_fortran_function_exists
works by trying to link an actual Fortran program.  When calling from C,
you have to know how Fortran names are mangled which means testing a
number of common choices.  Nobody put this logic into these Find
modules, but it would be nice because many (most?) users of BLAS/Lapack
need to call it from both Fortran and C so they need to know how the
symbols are mangled.  CBLAS/CLapack are entirely different beasts, but I
know of far more C projects that call the Fortran versions directly than
use the C bindings.

Jed
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to