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

Dforrtd.dll, unable to find my fortran DLL from VB.net application

Anonymous52
Beginner
1,088 Views

Hi,

Right this is my first post. I have created a VB.net application that uses a fortran DLL I created. When I compile and run it, it works. When I move the vb.net application and all the relevant DLLs it still works. When I move the vb.net application to another machine with fortran...it still works....BUT...(there had to be a but or else why would you be reading this)...when I move it to a machine without fortran I get an error that Dforrtd.dll could not be found...when I scroll down I see that it says that it cannot find the Fortran DLL even although it is the same folder as the application....eh???..When I specify the folder that the DLL is contained it still says it cannot find it. Not sure I am on the right forum now that I have read this back.....

Hopefully someone will be able to help...

Ta

Marcus

0 Kudos
3 Replies
TimP
Honored Contributor III
1,088 Views
You should be able to find previous posts in this forum on the subject of copying .dll's provided in the Fortran run-time library to other machines. Details will depend on which compiler you are using. They would reside in a library directory associated with the compiler, which will appear in paths which the SET command will show in that compiler's command line window. Tools such as 'dumpbin /dependencies your.exe' will identify which ones are required.
Compilers licensed by Intel generally include a note about entitlement to such use of the libraries. Other proprietary compilers may be much more restrictive.
Another option is to look up static link options for your compiler, which would embed the required library functions in the .exe.
0 Kudos
Steven_L_Intel1
Employee
1,088 Views

You're using CVF, I see. The problem is that you built your DLL in a "debug" configuration and that cannot be copied to another system as it has dependencies on non-redistributable DLLs. Rebuild in a Release configuration and copy dforrt.dll (note no "d" on the end) into the Windows System folder on the target system.

0 Kudos
Anonymous52
Beginner
1,088 Views
Thanks for the replies to this. I managed to get it to work using the suggestions.
0 Kudos
Reply