PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Compile Fortran files in VS 2010

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
moss81



Joined: 11 Jun 2012
Posts: 1

PostPosted: Tue Jun 12, 2012 1:48 pm    Post subject: Compile Fortran files in VS 2010 Reply with quote

I have fortran projects in VS 2010, after i install visual fortran for vs 2010 and tried to build any of these projects, i'm getting these errors:

Unable to open MODULE file XXXXX.mod

Any directions ?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6125
Location: The Portland Group Inc.

PostPosted: Tue Jun 12, 2012 4:22 pm    Post subject: Reply with quote

Hi moss81,

This error indicates that the dependent module could not be found. There are a number of reasons why this may occur.

On your first compile, the compiler will attempt to create a dependency list for your project. It builds your Fortran files in alphabetical order. If a file fails to build, it gets put back in the list and then recompiled later. During this process you will see these errors but eventually they will go away as the dependency list is created.

The cases where this process will fail is when a module file fails compile for another reason. This cause the module to not be created and thus other dependent compilation will also fail.

Also, if you are moving a project or add dependent modules, then the you may need to first need to clean your project (to remove the old dependency list) before rebuilding.

If your dependent modules are located in elsewhere (like from a different project) then you need to add these directories to your project's 'Module Path' property.

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group