delorie.com/archives/browse.cgi | search |
Date: | Fri, 12 Jan 2001 12:52:56 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | "Nimrod A. Abing" <n_abing AT ns DOT roxas-online DOT net DOT ph> |
Message-Id: | <9743-Fri12Jan2001125255+0200-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <3.0.1.32.20010112084816.006bc314@wingate> |
(n_abing AT ns DOT roxas-online DOT net DOT ph) | |
Subject: | Re: Calling C++ functions from C (or using Bison with C++) |
References: | <3 DOT 0 DOT 1 DOT 32 DOT 20010112084816 DOT 006bc314 AT wingate> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> Date: Fri, 12 Jan 2001 08:48:16 +0800 > From: "Nimrod A. Abing" <n_abing AT ns DOT roxas-online DOT net DOT ph> > > Now, I've tried doing it using pointers to functions. It works, but > (heheheh) is there a better way to do this? Indeed there is: you need to tell the C++ compiler that the parser is a C function, not a C++ function, like this: extern "C" int my_parser (void);
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |