X-Trace-PostClient-IP: 24.108.205.142 From: "Tim AtLee" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Linking problem? Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 16 Jul 2002 01:57:04 GMT NNTP-Posting-Host: 24.70.95.207 X-Complaints-To: abuse AT shaw DOT ca X-Trace: news2.calgary.shaw.ca 1026784624 24.70.95.207 (Mon, 15 Jul 2002 19:57:04 MDT) NNTP-Posting-Date: Mon, 15 Jul 2002 19:57:04 MDT Organization: Shaw Residential Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "J.W. Dare" wrote in message news:rd56ju4dc8fsrq34f70reqh79cqdudekhr AT 4ax DOT com... > On Mon, 15 Jul 2002 07:24:16 GMT, "Tim AtLee" > wrote: > > >Hi there... > > > >I've been trying to get PDCurses to work with C++ for a little while now, > >with little success... When it gets around to linking, I get: > > > >Error: cpptest.o(.eh_frame+0x11):cpptest.cpp: undefined reference to > >'___gxx_personality_v0' > > > >Seems to work allright if I use straight C code .. > > > >Any thoughts? > > > >Thanks. > > > > I'm not sure, but it may be a name mangling problem. Try wrapping > curses.h in your C++ source as shown below. > > extern "C" { > #include > } no dice, I'm afraid. I thought I read something (at some point in my life) about having to modify the curses header? Or am I totally out to lunch here? I wasn't able to find the article again, otherwise I would have tried that .. Thanks, Tim