Hello Vince,

that should be possible, but note:
- Linking Fortran programs should be done using the Fortran compiler
- You need to specify all the libraries and object files that are part
   of your program

In this case:

gfortran -o x01f.exe x01f.f \
     x:\your\plplot\build-dir\dll\libplplotf77d.dll.a \
     x:\your\plplot\build-dir\dll\libplplotf77cd.dll.a \
     x:\your\plplot\build-dir\dll\libplplotd.dll.a \
     ...

(You may need to add the CSIRO and QSAS libraries there as well)

The pkg-config script is supposed to help you with this, but I am not
sure it works correctly under MinGW (never tried it).

Note: you may be able to specify the .dll files, rather than the import
libraries.

Note: I am writing this from memory - unfortunately I do not now have
access to a PLplot build.

Regards,

Arjen

On 2010-03-26 09:50, Vincenzo Urso Miano wrote:
> Hello
> I understand this has gone out of my control, probably. The reality is
> that I just want to compile my fortran source and link it with plplot
> on WINDOWS, no matter how. I was suggested it could be easier trying
> manually.
> 
> I tried this:
> 
> I set PATH=path-to-libplplotf77
> and then I compile
> 
> E:\Workspace\temp\plplot>gcc -Wall x01f.f -lplplotf77cd.dll  -o b
> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot 
> fin
> d -lplplotf77cd.dll
> collect2: ld returned 1 exit status
> 
> It says it cannot find the library. I read the GC manual but i coul
> not find how to specify the path to the libraries.
> Could you please help me?
> 
> Vince
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Plplot-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-general
> 

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to