public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gFortran problem compiling complex character strings
@ 2007-12-15 16:10 Dominique Dhumieres
  2007-12-15 16:17 ` John (Eljay) Love-Jensen
  2007-12-15 16:36 ` Colin Tuckley
  0 siblings, 2 replies; 9+ messages in thread
From: Dominique Dhumieres @ 2007-12-15 16:10 UTC (permalink / raw)
  To: gcc-help; +Cc: colin

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

Colin, your line is too long for the fixed form implied by the .f suffix:
the last ' is at column 73 and not considered by gfortran as part of the statement.
You can break your line, used the free form (implied by .f90) or remove some
spaces at the beginning of the line.

Good luck!

Dominique

^ permalink raw reply	[flat|nested] 9+ messages in thread
* gFortran problem compiling complex character strings
@ 2007-12-14  8:53 Colin Tuckley
  0 siblings, 0 replies; 9+ messages in thread
From: Colin Tuckley @ 2007-12-14  8:53 UTC (permalink / raw)
  To: gcc-help

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...

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-12-17 15:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-15 16:10 gFortran problem compiling complex character strings Dominique Dhumieres
2007-12-15 16:17 ` John (Eljay) Love-Jensen
2007-12-15 16:36 ` Colin Tuckley
2007-12-17 14:09   ` Atwood, Robert C
2007-12-17 14:15     ` John Love-Jensen
2007-12-17 14:34       ` Atwood, Robert C
2007-12-17 15:05         ` Colin Tuckley
2007-12-17 15:29           ` Atwood, Robert C
  -- strict thread matches above, loose matches on Subject: below --
2007-12-14  8:53 Colin Tuckley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).