* Problem with gcc
@ 2002-03-15 15:48 Subhash Agrawal
2002-03-16 4:48 ` bjorn rohde jensen
0 siblings, 1 reply; 4+ messages in thread
From: Subhash Agrawal @ 2002-03-15 15:48 UTC (permalink / raw)
To: gcc-help
Hey guys,
I built gcc 2.95.3 and I am trying to build a test program but its giving
error..
Any thought is appreciated ...
Error and test program is included..
bash-2.02$ g++ test.cc
Undefined first referenced
symbol in file
cout /var/tmp/ccXyFxyz.o
basic_ostream<char, char_traits<char> > & operator<<<char_traits<char>
>(basic_ostream<char, char_traits<char> > &, char const
*)/var/tmp/ccXyFxyz.o
ios_base::Init::~Init(void) /var/tmp/ccXyFxyz.o
ios_base::Init::Init(void) /var/tmp/ccXyFxyz.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
bash-2.02$ cat test.cc
#include <iostream>
main()
{
cout << "Hello" ;
}
bash-2.02$
Regards
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem with gcc
2002-03-15 15:48 Problem with gcc Subhash Agrawal
@ 2002-03-16 4:48 ` bjorn rohde jensen
0 siblings, 0 replies; 4+ messages in thread
From: bjorn rohde jensen @ 2002-03-16 4:48 UTC (permalink / raw)
To: gcc-help
Hi Subhash,
Your test program compiles without any problem with my g++
g++ -v
Reading specs from
/usr/local/gcc2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Have you tried to run the gcc test suite to check, that your
build of gcc checks out?
Yours sincerely,
bjorn
Subhash Agrawal wrote:
>
> Hey guys,
>
> I built gcc 2.95.3 and I am trying to build a test program but its giving
> error..
>
> Any thought is appreciated ...
>
> Error and test program is included..
>
> bash-2.02$ g++ test.cc
> Undefined first referenced
> symbol in file
> cout /var/tmp/ccXyFxyz.o
> basic_ostream<char, char_traits<char> > & operator<<<char_traits<char>
> >(basic_ostream<char, char_traits<char> > &, char const
> *)/var/tmp/ccXyFxyz.o
> ios_base::Init::~Init(void) /var/tmp/ccXyFxyz.o
> ios_base::Init::Init(void) /var/tmp/ccXyFxyz.o
> ld: fatal: Symbol referencing errors. No output written to a.out
> collect2: ld returned 1 exit status
>
> bash-2.02$ cat test.cc
> #include <iostream>
>
> main()
> {
> cout << "Hello" ;
> }
> bash-2.02$
>
> Regards
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Problem with GCC.
[not found] <616BE6A276E3714788D2AC35C40CD18D9B64B8@whale.softwire.co.uk>
@ 2003-01-08 13:31 ` Rupert Wood
0 siblings, 0 replies; 4+ messages in thread
From: Rupert Wood @ 2003-01-08 13:31 UTC (permalink / raw)
To: 'Andrew Luande'; +Cc: gcc-help
Andrew Luande wrote:
> ld: fatal: file values-Xa.o: open failed: No such file or directory
:
> What have I not done
You haven't installed package SUNWarc from the Solaris media. You'll
probably also need SUNWcsl and SUNWhea if haven't already installed
them.
Others you might want are the 64-bit equivalents, SUNWarcx and SUNWcslx,
plus the Sun binutils SUNWtoo.
Hope that helps,
Rup.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Problem with GCC.
@ 2003-01-08 13:19 Andrew Luande
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Luande @ 2003-01-08 13:19 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1.1: Type: text/plain, Size: 910 bytes --]
Here is the error, Please help me if you can. I get this error when I try
to compile programs. What am I not doing
configure:1598: checking for C compiler default output
configure:1601: gcc conftest.c >&5
ld: fatal: file values-Xa.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to a.out
collect2: ld returned 1 exit status
I Have installed binutils binutils-2.11.2-sol8-sparc-local, and gcc 3.2
packages, and these are my variables,
HOME=/
HZ=100
LD_LIBLARY_PATH=/usr/local/lib
LD_RUN_PATH=/usr/local/lib
LOGNAME=root
MANPATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/ucbA:/usr/s
adm/bin:/opt/SUNWppro/bin:/usr/local/man:/usr/man:/usr/share/m
an
PATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/bin:/usr/local/bin:/usr/ucbA:/usr/sadm
/bin:/opt/SUNWppro/bin
SHELL=/sbin/sh
TERM=vt100
TZ=GMT+3
What have I not done
[-- Attachment #1.2: Type: text/html, Size: 4839 bytes --]
[-- Attachment #2: image001.gif --]
[-- Type: image/gif, Size: 7639 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-08 13:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-15 15:48 Problem with gcc Subhash Agrawal
2002-03-16 4:48 ` bjorn rohde jensen
2003-01-08 13:19 Problem with GCC Andrew Luande
[not found] <616BE6A276E3714788D2AC35C40CD18D9B64B8@whale.softwire.co.uk>
2003-01-08 13:31 ` Rupert Wood
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).