gFortran problem compiling complex character strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm currently trying to build libhdf4 on armel with gfortran.

colin@muscat:~$ gfortran --version
GNU Fortran (GCC) 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)


One of the test programs contains the statement:

 print *, 'Try one of "Skip", "Test", "Verbosity" or "Cleanup"'

which fails to compile giving:

gfortran -g -O2 -c fortestF.f
fortestF.f:193.20:

           print *, 'Try one of "Skip", "Test", "Verbosity" or "Cleanup"
                   1
Error: Unterminated character constant beginning at (1)


If I remove the double quote characters from inside the string then it
compiles ok.

Is this a compiler error/problem? A configuration problem? or something else?

regards,

Colin

--
Colin Tuckley      |  +44(0)1903 236872  |  PGP/GnuPG Key Id
Debian Developer   |  +44(0)7799 143369  |     0x1B3045CE

"Energize!" said Picard and the pink bunny appeared...

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux