#2 gnuplotfortran does not compile with gfortran

closed
nobody
None
5
2005-05-30
2005-03-21
No

Hi
I am using gnuplotfortran-0.2.tar.bz2 and gfortran
4.0.0 on a Debian system (sid) with 2.6.9-1-686 kernel.
When I compile the gnuplotfortran, I am getting the
following error.

$make
gfortran -shared gnuplot_fortran95.f90 -o
libgnuplotfortran.so
In file gnuplot_fortran95.f90:2141

p))//'" u 1:2
1
Error: Unterminated character constant beginning at (1)
make: *** [libgnuplotfortran.so] Error 1

My only changes to the default makefile are

F95C=gfortran
F95DEBUGOPTIONS=-g

I think the error is due to the fact the line 2141 is
too long. I tried splitting the line 2141 into two
lines and then it compiles fine. Just wanted to let you
know in case something serious going on.

Hope this helps
raju

Discussion

  • Logged In: YES
    user_id=1026801

    First of all, I apologise for not taking note of your
    concern earlier. I have been very busy lately, and have not
    had the time to check messages.

    Second, I am about to release a new version of
    gnuplotfortran (0.2.1) which has some bugfixes and new
    features (pm3d support being the premier one).

    Please go over the new release and let me know if you still
    need to make a change as above to fix your problem. I do not
    have gfortran installed, so I checked it only against IFC.

     
  • Logged In: YES
    user_id=772150

    Hi Madhusudansingh
    In your email you mentioned that you have tested
    gnuplotfortran with ifc. Actually the above error can be
    reproduced by ifort also. Just use the -e95 flag when you
    are compiling.

    $ifort -shared -e95 gnuplot_fortran95.f90
    fortcom: Info: gnuplot_fortran95.f90, line 2249: Text
    exceeds standard right hand column
    cmd=trim(cmd)//' f(x) t
    "f(x)='//trim(ffit)//'",
    "'//trim(ptr_gctrl%DATAFILENAME(ptr_gctrl%ntmp))//'" u 1:2 '
    ------------------------------------------------------------------------------------------------------------------------------------^

    $ifort -V
    Intel(R) Fortran Compiler for 32-bit applications, Version
    8.1 Build 20040921Z Package ID: <installpackageid>
    Copyright (C) 1985-2004 Intel Corporation. All rights reserved.
    FOR NON-COMMERCIAL USE ONLY

    ifort: Command line error: no files specified; for help type
    "ifort -help"

    This is with the latest gnuplotfortran 0.2.1 uploaded on May
    18. Breaking the line 2249 into two would solve the problem.

    hth
    raju

     
    • status: open --> closed