Alan W. Irwin wrote: > > >Note that the fortran examples passed ctest. This was a bit surprising to >me since we do something special in the headers to make symbols in the C >source code libraries libplplotf77cd and libplplotf95cd visible, but we have >no mechanism to do the same thing for the Fortran source code libraries >libplplotf77d and libplplotf95d. The only reasonable conclusion is gfortran >always exposes all symbols in Fortran source code libraries and the above >-fvisibility=hidden option for gfortran is just ignored. > >Arjen and Werner, that probably means your gfortran ctests will also pass on >Windows (for revision 8873). > >Later today I hope to report visibility fixes for Tcl, psttc, and the cairo >device driver, bit meanwhile, many thanks, Werner, for straightening out the >general namespace issues with the previous visibility treatment. > > > Hello Alan,
According to the gfortran people, gfortran 4.4.x supports the -fvisibility=hidden flag and an export definition file, so that we can control the visibility (default is indeed exported). I have had success in using the latest gfortran compiler under bare Windows (MinGW without MSYS). I have simply copied the file "Windows-gcc.cmake" to "Windows-GNU-Fortran.cmake" under plplot/cmake/platform and adapted the contents. I had to add the flag -Wl,--allow-multiple-definition because the linker was complaining about multiply defined gfortran symbols (something I want to have clarified with the gfortran people, as this may hide actual errors in the user code). (I wanted to test my changes for the various environments Windows I have available, but my environment variables (notably the PATH) has become polluted - under Cygwin CMake found the MSVC compiler, rather than gcc and other things did not work either. So, that will require a bit more care ...) Regards, Arjen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel