F77 DLL Example:

This example uses only F77 code, and doesn't really need a DLL 
initialization. You can experiment by deleting dllinit.c and 
removing all traces of dllinit.c from the Makefile. I've left
it in since it would be useful if you have a mixed language DLL.

First build the example:
  
  % make

If you don't have make (or if your version of make can't grok it), use
the supplied .bat file:
  
  c:\> makeit

This will create usedll.exe. Run it:

  % ./usedll

[ DOS people use "usedll" without the "./" ]

You should see the following output. If not, then please report it as a
bug along with the output you *do* see.
  
  in dllf1.
  in dllf2.
  realval =   3.14159012

