plplot-devel

On 2007-01-07 15:08-0000 Werner Smekal wrote:
> Update of /cvsroot/plplot/plplot/bindings/f77
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18362/bindings/f77
>
> Modified Files:
> CMakeLists.txt sc3d.c sccont.c scstubs.c
> Log Message:
> Functions are now exported to dll - tested with MinGW (where it worked already), but not with Visual C++, since I have no fortran compiler available for Visual C++.
To Werner and Arjen:
If Werner's PLDLLEXPORT changes are correct for bindings/f77, then they
should be applied to bindings/f95 as well.
I checked our windows status page at
(http://www.miscdebris.net/plplot_wiki/index.php?title=Overview_of_the_status_on_Windows),
but it only mentioned fortran. That single row should be changed to a row
for fortran 77 and a row for fortran 95.
(I presume one or both of you can compile both the fortran 77 and fortran
95 bindings.)
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________

On 2007-01-07 17:59+0100 Werner Smekal wrote:
> Alan said:
>>
>> I checked our windows status page at
>> (http://www.miscdebris.net/plplot_wiki/index.php?title=Overview_of_the_status_on_Windows),
>> but it only mentioned fortran. That single row should be changed to a row
>> for fortran 77 and a row for fortran 95.
>
> I madethe corresponding changes.
Thanks.
>
>> (I presume one or both of you can compile both the fortran 77 and fortran
>> 95 bindings.)
>
> No, I can test the MinGW g77 compiler, but have no access to another Fortran
> compiler (apart from Open Watcom), and for MinGW it works even without these
> changes. So we need either Jim or Arjen to confirm that.
As I am sure you already know (but I will state it again for others on this
list) gcc-3.x includes g77 while gcc-4.x includes gfortran, the replacement
to g77. g77 only works for our f77 interface, while gfortran works for both
our f77 and f95 interfaces.
It appears from the MinGW download page that they have not yet officially
released a gcc-4.x version. Fortunately, you can find an unofficial MinGW
gfortran binary at (http://gcc.gnu.org/wiki/GFortranBinaries). I assume the
installer mentioned there would automatically include the rest of gcc-4.x as
well (since gfortran depends on the core components of gcc-4.x).
If that version doesn't work properly, a google search for (mingw gfortran)
turns up hits that include directions for building gfortran on MinGW.
In researching this post, I ran into an extremely interesting site
(http://www.willus.com/ccomp.shtml?p00) comparing the various windows
compilers (both commercial and free) that are available. The site isn't
kept completely up to date (most entries are typically a year old), but it
appears to be quite comprehensive within that limitation. For example, the
MinGW link there points to a April 2005 post detailing why the MinGW team
were waiting for gcc-4.1. That sounds very reasonable for that epoch, but
that was a long time ago (in computer years). For example, gcc-4.1.0 was
released almost a year ago so I don't understand why the MinGW developers
are not releasing an official version of gcc-4.x yet. Perhaps it will be
coming soon?
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________

Hi Alan,
> As I am sure you already know (but I will state it again for others on this
> list) gcc-3.x includes g77 while gcc-4.x includes gfortran, the replacement
>[...]
> installer mentioned there would automatically include the rest of gcc-4.x as
> well (since gfortran depends on the core components of gcc-4.x).
I actually didn't know that gfortran was already available for Windows,
but I might try it (I'm a little bit hesitant since it's only an
installer and not a zip file, where I can set my paths myself).
> [...] For example, gcc-4.1.0 was
> released almost a year ago so I don't understand why the MinGW developers
> are not releasing an official version of gcc-4.x yet. Perhaps it will be
> coming soon?
Either there are major problems or the MinGW project is dying. Which
would be a pity. MinGW gcc 3.4.5 is actually not a bad compiler at all,
quite fast and already has precompiled header support. They seem to try
to get everything working (all languages) - since djgpp is already at
version 4.1 with it's c/c++ compilers.
Anyway, I'll look into gfortran when time permits.
Thanks,
Werner

On 2007-01-08 08:39+0100 Werner Smekal wrote:
>> [...] For example, gcc-4.1.0 was
>> released almost a year ago so I don't understand why the MinGW developers
>> are not releasing an official version of gcc-4.x yet. Perhaps it will be
>> coming soon?
>
> Either there are major problems or the MinGW project is dying. Which would be
> a pity. MinGW gcc 3.4.5 is actually not a bad compiler at all, quite fast and
> already has precompiled header support. They seem to try to get everything
> working (all languages) - since djgpp is already at version 4.1 with it's
> c/c++ compilers.
>
I have done some searching on the mingw-users list, and my above remarks
were probably too severe. One of the MinGW developers is actively working
on gcc-4.x, but for some reason it is taking him rather long to get out even
a development release. The MinGW developer may well be a perfectionist.
Whatever the reason for the delay in the official MinGW release of gcc-4.x,
the MinGW project is extraordinarily successful and there is no fear that
they are dying. Their mailing list has huge traffic, and they are usally in
the top 25 of the most actively downloaded projects on SourceForge.
Everybody loves a free (in both senses) compiler!
> Anyway, I'll look into gfortran when time permits.
Good. gfortran is good enough for our PLplot needs on Linux so
that MinGW binary put together by the GNU gfortran project is certainly
worth trying. According to http://gcc.gnu.org/wiki/GFortranBinariesWindows
the installer seems to give you quite a bit of flexibility about how/where
you install gfortran.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________

Hi Alan,
> To Werner and Arjen:
>
> If Werner's PLDLLEXPORT changes are correct for bindings/f77, then they
> should be applied to bindings/f95 as well.
Will do that if Jim or Arjen tell me if the changes for Fortran 77 work.
>
> I checked our windows status page at
> (http://www.miscdebris.net/plplot_wiki/index.php?title=Overview_of_the_status_on_Windows),
> but it only mentioned fortran. That single row should be changed to a row
> for fortran 77 and a row for fortran 95.
I madethe corresponding changes.
> (I presume one or both of you can compile both the fortran 77 and fortran
> 95 bindings.)
No, I can test the MinGW g77 compiler, but have no access to another
Fortran compiler (apart from Open Watcom), and for MinGW it works even
without these changes. So we need either Jim or Arjen to confirm that.
Regards,
Werner
--
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: smekal@...
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499

Hi Arjen,
I reverted all the changes to the Fortran 77 bindings, since I found
out, that Arjen already made corresponding changes for Fortran 95
bindings and his changes were much more elegant, so I made the same for
the Fortran 77 bindings. I hope this works now (since I can't test it).
Werner
> To Werner and Arjen:
>
> If Werner's PLDLLEXPORT changes are correct for bindings/f77, then they
> should be applied to bindings/f95 as well.
>
> I checked our windows status page at
> (http://www.miscdebris.net/plplot_wiki/index.php?title=Overview_of_the_status_on_Windows),
> but it only mentioned fortran. That single row should be changed to a row
> for fortran 77 and a row for fortran 95.
> (I presume one or both of you can compile both the fortran 77 and fortran
> 95 bindings.)
--
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: smekal@...
web: http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
+43-(0)1-58801-13469 (laboratory)
fax: +43-(0)1-58801-13499

Werner Smekal wrote:
>Hi Arjen,
>
>I reverted all the changes to the Fortran 77 bindings, since I found
>out, that Arjen already made corresponding changes for Fortran 95
>bindings and his changes were much more elegant, so I made the same for
>the Fortran 77 bindings. I hope this works now (since I can't test it).
>
>
>
Hi Werner,
I will try and check this tonight, for as many platforms as I have
available.
Should be interesting: I have not looked at Cygwin for some time now and
that presented difficulties last time I did ...
Regards,
Arjen