public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9395: Symbol referencing errors.
@ 2003-01-22  1:16 dhighley
  0 siblings, 0 replies; 2+ messages in thread
From: dhighley @ 2003-01-22  1:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9395
>Category:       c++
>Synopsis:       Symbol referencing errors.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 22 01:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     David Highley
>Release:        3.2.1
>Organization:
>Environment:
Solaris 8 Sparc platform
>Description:
Seem to have an undefined reference:
gcc -g -O2 -o mk-dirs_h mk-dirs_h.o  -L/usr/local/bin -R/usr/local/bin
Undefined			first referenced
 symbol  			    in file
std::ios_base::Init::~Init [in-charge]()mk-dirs_h.o
std::ios_base::Init::Init[in-charge]()mk-dirs_h.o
std::cout                           mk-dirs_h.o
std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)mk-dirs_h.o
__gxx_personality_v0                mk-dirs_h.o
ld: fatal: Symbol referencing errors. No output written to mk-dirs_h
collect2: ld returned 1 exit status
*** Error code 1


I did do a search of the bug database before submitting this.
>How-To-Repeat:
Down load aspell from http://aspell.net/ version 0.53.3
CC=gcc CXX=gcc ./configure --with-PACKAGE=yes
make
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/9395: Symbol referencing errors.
@ 2003-01-22 14:26 Phil Edwards
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Edwards @ 2003-01-22 14:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9395; it has been noted by GNATS.

From: Phil Edwards <phil@jaj.com>
To: dhighley@highley-recommended.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/9395: Symbol referencing errors.
Date: Wed, 22 Jan 2003 09:16:57 -0500

 On Wed, Jan 22, 2003 at 01:12:41AM -0000, dhighley@highley-recommended.com wrote:
 > >Description:
 > Seem to have an undefined reference:
 > gcc -g -O2 -o mk-dirs_h mk-dirs_h.o  -L/usr/local/bin -R/usr/local/bin
 
 If you write in C++, you need to either use 'g++' to link, not 'gcc',
 or explicitly list the C++ runtime libraries.
 
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-22 14:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-22  1:16 c++/9395: Symbol referencing errors dhighley
2003-01-22 14:26 Phil Edwards

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