DDE: Call C functions from C++ app?
Chris Mahoney (1684) 2165 posts |
Is it possible to create a mixed C/C++ app with the DDE? For example, can I do something like this (pseudocode):
When I try to link both object files into my !RunImage, it tells me that hello(void) is an undefined symbol. Is there a way to get this working, or is it not possible? Are there any examples available anywhere? Sorry that this is a bit vague; if someone can confirm whether it’s possible to interwork C and C++ then I can provide the specific makefile and exact output from Link (it’s just a bit of a hassle to post at present). |
Colin (478) 2433 posts |
You need to bracket the function declarations with
|
Chris Mahoney (1684) 2165 posts |
Thanks. It’s so blatantly obvious now that you’ve said it! |
Jean-Michel BRUCK (3009) 362 posts |
I have noticed that in some libraries the extern “C” is missing (example unicode.y.utf8). DDE with shared makefiles works well with C and C++. |