public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Colin Tuckley <colin@tuckley.org>
To: gcc-help@gcc.gnu.org
Subject: gFortran problem compiling complex character strings
Date: Fri, 14 Dec 2007 08:53:00 -0000	[thread overview]
Message-ID: <4762447C.2080702@tuckley.org> (raw)

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

             reply	other threads:[~2007-12-14  8:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14  8:53 Colin Tuckley [this message]
2007-12-15 16:10 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4762447C.2080702@tuckley.org \
    --to=colin@tuckley.org \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).