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:
J S Jayakumar <[log in to unmask]>
Reply To:
J S Jayakumar <[log in to unmask]>
Date:
Wed, 8 Apr 2009 11:59:08 +0530
Content-Type:
text/plain
Parts/Attachments:
text/plain (70 lines)
Dear Matthew,

I also did not notice any probs. The machine is an AMD64 running SL5.2 
64 bit.

$ g++ a.cc
a.cc: In function ‘int main()’:
a.cc:4: error: ‘e’ was not declared in this scope

$ g++ -v
Using built-in specs.
Target: x86_64-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-awt=gtk --disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)


Matthew Jones wrote:
> 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