- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to find and run a test program in the latest version of Intel's FORTRAN for Windows that I downloaded and installed on a test machine.
I am working within Visual Studio 5. All I want to do is show myself that I can write a FORTRAN dll and then call it from a FORTRAN console application.
Can someone help me with a simple sample?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
I am using Visual Studio 2005. I tried the sample. No luck yet, so one-step-at-a-time.
Please explain: "You will also need to have updated PATH to include the folder containing the Fortran run-time DLLs."
Thanks,
Norm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the compiler installs, you are asked if you want to update the system PATH, INCLUDE and LIB environment variables. The default is to not do so (Microsoft recommendation), but not updating PATH means that programs which depend on the Intel Fortran run-time DLLs won't run because these DLLs can't be found.
To fix this, right click on My Computer, select Properties, Advanced, Environment Variables. Edit the system PATH environment variable to add at the end:
C:Program FilesIntelCompilerFortran9.1IA32Bin
If you have the compiler installed somewhere else, change as needed. Entries ar separated by semiolons.
What doesn't work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve,
This is what works.
Copy sample application to Visual Studio projects folder.
Open ConsolCallsDll solution; bulid Dll; rename Debug file in ConsoleCallsDll folder; Copy complete Debug folder from Dll folder and paste in ConsoleCallsDll folder; bulid solution.
Then it runs in dubug or without debug mode.
I am trying to make the same project with the help of Visual Studio by making a empty console project and an empty dll project; adding the source code from the sample to the console and dll. When I build the dll it is fine. When I build the Console app I get error LNK2019: unresolved external symbol _MYSQRT referenced in function _MAIN__; and fatal error LNK1120: 1 unresolved externals.
Thanks again,
Norm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve,
I did just that in a new solution, bulit the dll, console app and copied the dll to the console app debug folder. Ran fine.
All is getting better. Look fowared to working with you on other..... fortran code.
Thanks again,
Norm

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page