This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gFortran problem compiling complex character strings


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]