delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/18:00:17

Message-Id: <3.0.5.32.19980212175344.0079e350@mail.kudos.net>
Date: Thu, 12 Feb 1998 17:53:44 -0500
To: djgpp AT delorie DOT com
From: Gerald Wann <photonuv AT kudos DOT net>
Subject: <_string.h> error
Mime-Version: 1.0

Hi -

My apologies in advance if this question is not djgpp-specific, but here goes.

the program

#include <_string.h>

int mani(void)
{
	String str;
	return 0;
}

now compiles , but when i attempt to build the project, it gives me an

garbd.cc(48) Error: undefined reference to 'String::String(void)'

error message (and a similar one for the destructor).

Would some poor soul take pity on me and tell me what obvious blunder
i'm now making ;-)?

TIA
Jerry


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019