SCIENTIFIC-LINUX-USERS Archives

April 2009

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Matthew Jones <[log in to unmask]>
Reply To:
Matthew Jones <[log in to unmask]>
Date:
Tue, 7 Apr 2009 15:05:10 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
I recently installed SL5.2, which generally works well, but gcc is unable
 to
report the symbols that it is having difficulty compiling...

For example, if I compile the following program:

int main() {
  double d = 1.5;
  e = d + 2;
}

I get the following:

$ g++ junk.cc
junk.cc: In function â:
junk.cc:3: error: â was not declared in this scope

As far as I can tell, everything else about g++ seems to be working.

Here is my system info:

$ cat /etc/redhat-release
Scientific Linux SLF release 5.2 (Lederman)
$ uname -a
Linux xxx.xxx.xxx.xxx 2.6.18-128.1.1.el5PAE #1 SMP Tue Feb 10 12:05:11 ES
T
2009 i686 athlon i386 GNU/Linux
$ g++ -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-aw
t=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=g
eneric
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)

ATOM RSS1 RSS2