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
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.)
13. Under Linker->Input
a. Additional Dependencies
X11.lib
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.
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
Contact Information
Email: randyschwarz@mcnpvised.com