Creators of Quality Software

  Randy and Alysia Schwarz

  P.O. Box 1308

  Richland, WA 99352

 

Creating a Fortran console application that calls a C program with an external library (X11.lib) using Intel Fortran 10.1, with Visual Studio 2008

333Previous Page

12.      You need to specify the X11 library directory.  Under Linker->General

a.  Additional Library Directories

C:\Program Files\LANL\MCNP5\Source\X11R6\lib

(This may be different for your setup.   Verify the file is there.)

creating fortran image 12

13.      Under Linker->Input

a.  Additional Dependencies

X11.lib

creating fortran image 13

14.  Under Linker->System

a.       Heap Reserve Size

83886080

b.      Stack Reserve Size

536870912

c.       Enable Large Addresses

Support Addresses Larger than 2 CB (/LARGEADDRESSAWARE)

15.      Click Apply, then OK.

creating fortran image 15

16.      Create the C project.

a.  File-> new-> project Visual C++->MFC->MFC DLL

(may be able to user a different project type, this is what I use.  The goal is to create a static C library)

b.  Set Name: to

clib

c.  Set Solution: to

Add to Solution

d.  Select OK, then Finish

creating fortran image 16

Continue to Next Page 444


  • Contact Information

    Email: randyschwarz@mcnpvised.com