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:
Konstantin Olchanski <[log in to unmask]>
Reply To:
Konstantin Olchanski <[log in to unmask]>
Date:
Thu, 9 Apr 2009 11:20:23 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
> >>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


Without "setenv LANG C", GCC & co tend to report gibberish error messages.


-- 
Konstantin Olchanski
Data Acquisition Systems: The Bytes Must Flow!
Email: olchansk-at-triumf-dot-ca
Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada

ATOM RSS1 RSS2