From: jpmorgan AT unm DOT edu (James Paul Morgan) Subject: Re: problem linking class String 27 Apr 1997 13:33:50 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Original-To: Carl Nicol Original-cc: gnu-win32 AT cygnus DOT com In-Reply-To: <199704251951.PAA23358@kansas.stk.com> Original-Sender: owner-gnu-win32 AT cygnus DOT com 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. See ya around the Mulberry bush. --James :) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".