www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/28/22:28:57

From: Tudor <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help on linker errors
Date: Sat, 28 Dec 1996 20:35:58 -0800
Organization: Communications Accesibles Montreal
Lines: 36
Message-ID: <32C5F52E.5437@cam.org>
References: <121233 DOT 27 DOT 32BA6D82 AT student DOT fbk DOT eur DOT nl>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynppp-96.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Walter H. van Holst wrote:
> 
> Hello all,
> 
>  I am fairly new to C++ and DJGPP, so this might be a stupid question, but I
> couldn't find it in the FAQ. I have some code which compiles fine, but the
> linker produces errors like:
> 
> Error: prcsor.o: In function `construct(Purchases_Period_O *,
> Purchases_Period_O const &)`: prcsor.cc(123 Error: undefined reference to `
> operator new(unsigned long, void *)`
> 
> I am using the latest version of both DJGPP and RHIDE, and I do not have a
> clue what's going wrong. I never use a operator with the name 'new'.
> 

You should post some code too...
New is a C++ operator, the same as C's malloc():
char c=(*char)malloc(..blah blah..)
char *c=new char--I guess,I keep forgetting the prototypes;
> 
> If Unix  isn't inferior to Windows  then why does the
> marketplace consistently chose Windows over Unix? Are
> you a socialist who believes the marketplace does not
> make optimal choices?               -- Scott Nudds --
Are you trying to make fun of poor Scott?Shame on you,you naughty boy ;)
-- 
tudor 'at' cam 'dot' org
http://www.cam.org/~tudor

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d-(--) s(-):(+) a? C+ UL>++++ P L>+++++ E- W++ N o K---(----) w---
O---- M-- V-? PS+++ PE Y PGP t+ 5-- X+++>++++ R tv b+ DI D+ G e->++
h>++ r- y>+++++ 
------END GEEK CODE BLOCK------

- Raw text -


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