From: sos@prospect.com.ru (Sergey Okhapkin)
Subject: RE: problem linking class String
28 Apr 1997 00:36:30 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <01BC53C2.42D3F840.cygnus.gnu-win32@gater.krystalbank.msk.ru>
Original-To: Carl Nicol <cnicol@stk.com>, "'James Paul Morgan'" <jpmorgan@unm.edu>
Original-Cc: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com>
Encoding: 29 TEXT
Original-Sender: owner-gnu-win32@cygnus.com

James Paul Morgan wrote:
> On Fri, 25 Apr 1997, Carl Nicol wrote:
>
> > I'm trying to build a program with class String from
> > "String.h",
> > and although the compiler finds the include file, it does not seem to 
be
> > able to link in the class members, giving the following messages:
> >
> > C:\PROJECTS\why>g++ -o test test.cc
> > C:\TEMP/cc0010011.o(.text+0x1d6):test.cc: undefined reference to
> > `String::String(char const *)'
> > [SNIP]
> >
>
> g++ test.cc -o test -lg++
>
> I had the same problem till I started linking agains the g++ library.
>

Well known bug... Case insensitivity problem. Compiler includes 
include/string.h instead of include/g++/String.h. Try to compile with 
-Ipath/include/g++ option.

--
Sergey Okhapkin
Moscow, Russia
Looking for a job.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
