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

HOW TO GENERATE A DLL IN fOTRAN CODE?

lyricx
초급자
462 조회수
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 포인트
2 응답
anthonyrichards
새로운 기여자 III
462 조회수

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 포인트
lyricx
초급자
462 조회수
Thank you for your clarification!
Another problem is how to detect a arbitrary file's path in Fortran source code?
0 포인트
응답