Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

dll again

mariokaiser
Beginner
561 Views

hello everyone.

i created a console application that works fine and now i want to make a dll out of it.

the console app uses several subroutines and .lib files! i changed the main program into a subroutine and added

!DEC$ ATTRIBUTES DLLEXPORT, STDCALL, REFERENCE, ALIAS:'druckabs'::druckabs

the dll is created without any errors, but thenit cannot be found by any other program, no matter where icopy it to(system32, etc)

my guess is that the dll is build incorrectly!

are there any project settings to be changed or do i have to add some !dec$ attributes to the subroutines or to the .lib files?

can anyone help me out?

thanks and good bye, mario

0 Kudos
3 Replies
Steven_L_Intel1
Employee
561 Views
You have to make sure that any DLLs your DLL uses are in a folder listed in the PATH environment variable. These would include such as C:Program FilesIntelCompilerFortran9.1IA32Bin, etc. Also, be sure to build the DLL in a Release configuration, not Debug.
0 Kudos
mariokaiser
Beginner
561 Views

hi steve,

my dll is using .lib files only! do i have to check the PATH environment variable for them as well? and where can i find it / how do i do that?

mario

0 Kudos
Steven_L_Intel1
Employee
561 Views

If your DLL is linked to the static libraries, then you don't have to worry about paths.

What is the exact error you see and what program do you run that gives the error?

Download Dependency Walker and use it to check your DLL for dependencies.

0 Kudos
Reply