delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/30/17:39:02

From: Thomas Dickey <dickey AT saltmine DOT radix DOT net>
Newsgroups: comp.os.linux.development.apps,comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Text (console) UIs for C/C++ (Linux and DOS)
Date: 30 Jul 2002 21:17:40 GMT
Organization: RadixNet Internet Services
Lines: 26
Message-ID: <ai6vpk$7s5$3@news1.Radix.Net>
References: <ai2q1i$10pqss$1 AT ID-122086 DOT news DOT dfncis DOT de> <pZc19.30286$eH2 DOT 12436140 AT ruti DOT visi DOT com> <ai3s30$10v94f$1 AT ID-122086 DOT news DOT dfncis DOT de> <fNe19.30307$eH2 DOT 12462302 AT ruti DOT visi DOT com> <ai46vb$1154hr$1 AT ID-122086 DOT news DOT dfncis DOT de> <xwh19.30356$eH2 DOT 12509121 AT ruti DOT visi DOT com> <ai6jjo$11tojb$1 AT ID-122086 DOT news DOT dfncis DOT de>
NNTP-Posting-Host: saltmine.radix.net
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.8 (sun4u))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In comp.os.linux.development.apps Philip Pemberton <philpem AT despammed DOT com> wrote:
> Going back to Curses/CDK for a moment, can anyone send me a simple app and
> makefile that will actually compile? No matter how hard I try, I can't get
> my program to link against CDK. "ld" just keeps complaining about unresolved
> symbols and the like. Anyone know what magic incantations I have to throw at
> g++ to get my app to compile?

The original cdk headers don't include the declarations to make C++ know
that the functions are C, e.g.,

#ifdef	__cplusplus
extern "C" {
#endif

#include <cdk.h>

#ifdef	__cplusplus
}
#endif

Though I incorporated that change a while ago...

-- 
Thomas E. Dickey <dickey AT radix DOT net> <dickey AT herndon4 DOT his DOT com>
http://dickey.his.com
ftp://dickey.his.com

- Raw text -


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