Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28495 Discussions

HOW TO GENERATE A DLL IN fOTRAN CODE?

lyricx
Beginner
253 Views
I don't want to use project wizard to do this work, but I want to
generate a dll file in fortran source code. This dll file can be generated from another .f90 file. This should be automatically finshed when the code is implemented.
someone can give me some suggestions? Thank you very much!
0 Kudos
2 Replies
anthonyrichards
New Contributor III
253 Views

1) You need to find out how to generate your DLL using the command line.
All the commands (NMAKE etc) that are required should be in a file that you can then access by name from your program.

2) your program must write the FORTRAN code you need to files

3)You need to generate a character-string containing the full command line that
you need to compile and link your DLL using the FORTRAN filenames as arguments to the command file previously mentioned.

4) you need to execute this command by passing it to the operating system command shell using SYSTEM, SYSTEMQQor ShellExecute or some such subroutine or function in order to start the process of creating the dll

4)you need to wait for this to happen and act on the return flag you get.

0 Kudos
lyricx
Beginner
253 Views
Thank you for your clarification!
Another problem is how to detect a arbitrary file's path in Fortran source code?
0 Kudos
Reply