From: "J.W. Dare" Newsgroups: comp.os.msdos.djgpp Subject: Re: Linking problem? Message-ID: References: X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 28 Date: Mon, 15 Jul 2002 18:34:32 GMT NNTP-Posting-Host: 68.13.99.222 X-Complaints-To: abuse AT cox DOT net X-Trace: news2.central.cox.net 1026758072 68.13.99.222 (Mon, 15 Jul 2002 14:34:32 EDT) NNTP-Posting-Date: Mon, 15 Jul 2002 14:34:32 EDT Organization: Cox Communications To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie 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 } -- J.W.Dare jwdare AT cox DOT net