Mail Archives: djgpp/1996/12/28/22:28:57
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 -