plplot with making dll file by fortran

dawn
2005-10-20
2013-03-15
  • dawn
    dawn
    2005-10-20

        I have a fortran program named 'seismplot.f', in which there are several functions of plplot.lib are called directly. I used following command lines to compile it and make a dll file:

       f77 -c seismplot.f
       echo seismplot > seismplot.xps
       echo _seismplot@8 seismplot > seismplot.als
       lnk /dll seismplot.obj absRT0.lib PLPlot.lib kernel32.lib user32.lib fio.lib fmath.lib libac.lib /exports:seismplot.xps /aliases:seismplot.als

       Then, I got the error messages as below: 

         # link error: undefined symbol- _plwind
         # first ref in  seismplot.obj 
         # link error: undefined symbol- _plcol
         # first ref in  seismplot.obj 
         # link error: undefined symbol- _plsco10
         # first ref in  seismplot.obj 
         # link error: undefined symbol- _plscolby
         # first ref in  seismplot.obj 
         # link error: undefined symbol- _plvpor
         # first ref in  seismplot.obj  
         # link error: undefined symbol- _plfont
         # first ref in  seismplot.obj 
         # link error: undefined symbol- _plinit
         # first ref in  seismplot.obj 
         # link error: undefined symbol- _pladv
         # first ref in  seismplot.obj 

         All of the undefined symbols are the functions of plplot.lib.

         The functions of plplot.lib of seismplot.f can be run in fortran compiler and plot the figures out. The error messages only appear when a dll file need to be made.  

         What is the probable problem?