Error 2001 means "unresolved external symbol" - in other words you are
calling a subprogram, but the linker can't find it. Does this happen
when you are building the DLL, or the main program?
The procedure is described in the online Programmer's Guide - under
"Creating Fortran DLLs". From the command line you have to remember the
/dll command line option when creating the DLL,
e.g. DF /dll mydll.f90
and to include the .lib file that command creates when linking the
e.g DF mainapp.f90 mydll.lib
The .lib file is a glue layer that tells the main program how to get at
There are special cases, and the procedure is different if you are using
Visual Studio, but it's all described in the Programmer's Guide.
John Appleyard - (send email to john!news@.. rather than spamtrap@..)
Programs for Programmers - QA, Compilers, Graphics, Consultancy
********* Visit our Web site on http://www.polyhedron.co.uk/ *********