[CMake] No FortranCInterface mangling known with (VCExpress & Intel Ifort 2008)

Brad King brad.king at kitware.com
Fri Jul 2 09:57:31 EDT 2010


Cyril, Andrew,

On 6/9/2010 4:00 AM, Giraudon Cyril wrote:
> I use Visual Studio Express 9 2008 and ifort 11.1 under Windows XP.
>
> When I try to generate the fortran binding of a project a "No
> FortranCInterface mangling known for mysub" message (reported hereafter)
> is printed.
>
> It seems CMake can't deal with the couple (Visual Studio Express 2008,
> Ifort 11.1).
[snip]
On 2010-06-28 15:25 EDT, Andrew Trachenko wrote:
> http://www.cmake.org/Bug/view.php?id=10904
> FortranCInterface_HEADER macro produces "No FortranCInterface mangling
> known for XXX" error.
>
> Generator: Visual Studio 9 2008 Win64
> CMAKE_Fortran_COMPILER=ifort
> OS: Windows Server 2008 R2 (x64)
>
> The same configuration for Win32 works OK.

We've received reports from both of you about this problem.  However,
I'm unable to reproduce it with Visual Studio Professional 2008 and
Intel Fortran 11.1.  The FortranCInterface is properly detected for
me, and I can configure hdf5 with Fortran enabled.  It works with
both the Win32 and Win64 generators.

Does the problem still occur for you with CMake 2.8.2?

> Correct name mangling is just ALL_UPPERCASE.

This is known.  See the list of known manglings here:

  http://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/FortranCInterface/CMakeLists.txt;h=18014af5;hb=f9116d02

-Brad


More information about the CMake mailing list