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

Dll sample

fluxion
Beginner
1,151 Views
Hi,

I have just load and tried to run the dll sample solution for dynamic loading of dlls provided with my Intel fortran installation. When I try to debug the DynamicLoad program it fails with the error libcoremdd.dll was not found. I have not modified any of the comiler or linker settings from the sample. Any ideas?

Thank You
Caroline
0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,151 Views
This suggests that the compiler's LIB folder was not added to PATH. This could happen if you chose a Custom install and changed the option to specify that PATH should not be modified.

If you uninstall and reinstall the compiler, that should fix it.
0 Kudos
fluxion
Beginner
1,151 Views
Thank You Steve. Adding the library folder to the path worked. I have now managed to compile my dll and program and run it with the 32 bit compiler. When I try it with the 64 bit compiler they compile and link OK but when I run it I get a message saying that the USER32 library has been relocated as DLL dynamic memory allocation had used the memory space for the USER32 library. I am hoping the fix for this is just as simple.

Thank you

Caroline
0 Kudos
Steven_L_Intel1
Employee
1,151 Views
If you are also building for Intel 64, you need to also add the "Intel64" LIB folder to PATH. I suggest you place it before the IA32 folder.
0 Kudos
fluxion
Beginner
1,151 Views
I had added the 64 path but not in the order you specified. I have now corrected that and rebooted. I still get the message:-

" The system DLL user32.dll was relocated in memory. The application will not run properly. The relocation occurred because the DLL C;\Program Files(X86)\Intel\Compiler\Fortran\10.1.025\em64t\Lib\libifcoremdd.dll occupied an address range reserved for Windows System DLLs. The vendor supplying the DLL should be contacted for a new DLL"

Any more ideas?

Thank you

Caroline
0 Kudos
Steven_L_Intel1
Employee
1,151 Views
I have never seen that message before. It suggests that one or more DLLs, or the application, were linked specifying an explicit load address.
0 Kudos
Reply