c++/9395: Symbol referencing errors.
Phil Edwards
phil@jaj.com
Wed Jan 22 14:26:00 GMT 2003
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.
More information about the Gcc-prs
mailing list