- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Professional
Microsoft Visual C# 2005 77626-009-1998976-41170
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77626-009-1998976-41170
Microsoft Visual C++ 2005
Microsoft Visual J# 2005 77626-009-1998976-41170
Microsoft Visual J# 2005
Microsoft Visual Web Developer 2005 77626-009-1998976-41170
Microsoft Visual Web Developer 2005
Microsoft Web Application Projects 2005 77626-009-1998976-41170
Microsoft Web Application Projects 2005
Version 8.0.50727.762
Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005
Intel Fortran Compiler Integration
Intel Fortran Compiler Integration for Microsoft Visual Studio 2005, Version 10.0.3718.2005, Copyright (C) 2002-2007 Intel Corporation
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
I have f90 code that I am trying to link to MPICH2. the MPICH header file mpif.h is written for f77 so it has C in column 1 for comment lines.
I get:
C:Program FilesMPICH2includempif.h(1) : Error: Syntax error, found '/' when expecting one of: => = . ( : %
C /* -*- Mode: Fortran; -*- */
Errors for each comment line.
From the documentation I think I understand that the format needs to be defined as fixed rather that free??
I have tried
Tools->Options->Intel Fortran-> ; Project Builds->Fixed Format: .f;.for;.h
But this does not help.
How do I get it to accept both C and ! as comments in different files?
Thanks,
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
!DEC$ NOFREEFORM
include 'mpif.h'
!DEC$ FREEFORM
Don't forget to start the "include" in column 7.
You should also look to see if there is a "f90" version of this file. There is in the distributions of MPICH2 I have seen.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page