Hi Vince, you do need to rebuild PLplot for the g95 compiler, as it requires different runtime libraries than gfortran or g77. Also the compiler intermediate files are different. (g95 and gfortran share the same origin but the two have grown apart.)
I am not sure PLplot currently does support g95 via its CMake configuration. This line in the output: -- WARNING: fortran compiler does not support f90/95. Disabling f95 bindings suggests that the test for f90/95 features failed, hence g95 is not recognised as an f90/95 compiler. This may be due to CMake 2.8: Alan changed the language support, so that for CMake 2.8 we can rely on CMake's configuration files, rather than our own. Could you check with CMake 2.6? Regards, Arjen On 2010-04-06 11:47, Vincenzo Urso Miano wrote: > Hi, > I compiled plplot using MinGW (g77 was the Fortran compiler) on Win XP. > Now I need to use something more advanced than the Fortran 77 standard. > I installed g95 within MinGW and I tryed to compile and link my source > straight away and here's what I get: > > g95 -o test.exe plot.f -IC:/plplot/include/plplot -LC:/plplot/lib > -lplplotf77optsd -lplplotf77cd -lplplotf77d -lplplotd -lcsirocsa > -lqsastime > ld: crt2.o: No such file: No such file or directory > > So I thought of rebuilding plplot with g95 on. I also noticed there > are the fortran 95 bindings to enable. > > cd C:\plplotbuild > C:\plplotBuild>cmake ..\plplot-5.9.5 -G "MinGW Makefiles" > -DCMAKE_INSTALL_PREFIX > =C:/ -DCMAKE_Fortran_COMPILER=C:/MinGW/bin/g95.exe -DENABLE_f95:BOOL=ON > -- CMake version = 2.8.0 > -- Checking whether system has ANSI C header files > -- ANSI C header files - found > -- SWIG was not found. Please specify Swig executable location > -- Could NOT find Perl (missing: PERL_EXECUTABLE) > -- Looking for pkg-config - found > -- X11_FOUND = > -- X11_INCLUDE_DIR = > -- X11_COMPILE_FLAGS = > -- X11_LIBRARIES = > -- WARNING: fortran compiler does not support f90/95. Disabling f95 bindings > -- NOTICE: Found: C:/MinGW/bin/g95.exe > -- ENABLE_tcl is OFF so disabling everything else that is Tcl/Tk related > -- checking for module 'pango' > -- package 'pango' not found > -- WARNING: pkg-config does not find pango. > -- checking for module 'pangoft2' > -- package 'pangoft2' not found > -- WARNING: pkg-config does not find pangoft2. > -- Looking for gdi32 header and library > -- Looking for gdi32 header and library - found > -- WARNING: validate target will not be available to check for syntax errors > in > the PLplot DocBook documentation because onsgmls was not found. > > Summary of CMake build system results for PLplot > > Install location variables which can be set by the user: > CMAKE_INSTALL_PREFIX: C:/ > CMAKE_INSTALL_EXEC_PREFIX C:/plplot > CMAKE_INSTALL_BINDIR C:/plplot/bin > CMAKE_INSTALL_DATADIR C:/plplot/share > CMAKE_INSTALL_LIBDIR C:/plplot/lib > CMAKE_INSTALL_INCLUDEDIR C:/plplot/include > CMAKE_INSTALL_INFODIR C:/plplot/share/info > CMAKE_INSTALL_MANDIR C:/plplot/share/man > > Derived install location variables: > DATA_DIR C:/plplot/share/plplot5.9.5 > LIB_DIR C:/plplot/lib > INCLUDE_DIR C:/plplot/include/plplot > BIN_DIR C:/plplot/bin > TCL_DIR C:/plplot/share/plplot5.9.5/tcl > ADA_INCLUDE_DIR C:/plplot/share/ada/adainclude/plplotadad > ADA_LIB_DIR C:/plplot/lib/ada/adalib/plplotadad > PYTHON_INSTDIR > DRV_DIR C:/plplot/lib/plplot5.9.5/driversd > DOC_DIR C:/plplot/share/doc/plplot > MAN_DIR C:/plplot/share/man > INFO_DIR C:/plplot/share/info > > Other important CMake variables: > > CMAKE_SYSTEM_NAME: Windows > UNIX: > WIN32: 1 > APPLE: > MSVC: (MSVC_VERSION: ) > MINGW: 1 > MSYS: > CYGWIN: > BORLAND: > WATCOM: > > SWIG_FOUND: FALSE > PERL_FOUND: FALSE > X11_FOUND: > > CMAKE_BUILD_TYPE: > CMAKE_C_COMPILER CMAKE_C_FLAGS: C:/MinGW/bin/gcc.exe > CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS: C:/MinGW/bin/g++.exe > CMAKE_Fortran_COMPILER CMAKE_Fortran_FLAGS: C:/MinGW/bin/g95.exe > Target Fortran: > LIB_TAG: d > > ENABLE_DYNDRIVERS: ON > DRIVERS_LIST: mem;null;ps;svg;wingcc;xfig > DEVICES_LIST: mem;null;ps;svg;wingcc;xfig > > Library options: > BUILD_SHARED_LIBS: ON PL_DOUBLE: ON > > Optional libraries: > HAVE_QHULL: OFF WITH_CSA: ON > HAVE_FREETYPE: HAVE_PTHREAD: > HAVE_AGG: > > Language Bindings: > ENABLE_f77: ON ENABLE_f95: OFF > ENABLE_cxx: ON ENABLE_java: OFF > ENABLE_python: OFF ENABLE_octave: OFF > ENABLE_tcl: OFF ENABLE_itcl: OFF > ENABLE_tk: OFF ENABLE_itk: OFF > ENABLE_pdl: OFF ENABLE_wxwidgets: OFF > ENABLE_gnome2: OFF ENABLE_pygcw: OFF > ENABLE_ada: OFF ENABLE_d: OFF > ENABLE_ocaml: OFF ENABLE_lua: OFF > ENABLE_qt: OFF ENABLE_pyqt4: OFF > > -- Configuring done > -- Generating done > -- Build files have been written to: C:/plplotBuild > > > I can't enable the g95 bindings. Am i right? Do I need f95 bindings? > How can I do it? > Thank you, > 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
