www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/15/16:56:55

From: "J.W. Dare" <jwdare AT cox DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linking problem?
Message-ID: <rd56ju4dc8fsrq34f70reqh79cqdudekhr@4ax.com>
References: <AMuY8.50233$pi1 DOT 4124132 AT news2 DOT calgary DOT shaw DOT ca>
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
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" <timatlee AT shaw DOT ca>
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 <curses.h>
}

-- 
J.W.Dare
jwdare AT cox DOT net

- Raw text -


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