From: "Joseph D. Wagner" <wagnerjd@prodigy.net>
To: 'qhwang' <qhwang@ieeta.pt>, linux-c-programming@vger.kernel.org
Subject: RE: integrating c code and c++ code
Date: Thu, 26 Dec 2002 11:24:30 -0600 [thread overview]
Message-ID: <000401c2ad03$a7940cc0$91271c43@joe> (raw)
In-Reply-To: <004601c2acf2$a442cea0$70ab88c1@ieeta.pt>
Just combine the two. C++ is a subset of C which means everything that
worked under C will continue to work under C++.
Sure, it will result in sloppy code, a weird mix of C and C++ syntax, but it
will compile and work fine.
Or at least it should 8-)
Joseph Wagner
-----Original Message-----
From: linux-c-programming-owner@vger.kernel.org
[mailto:linux-c-programming-owner@vger.kernel.org] On Behalf Of qhwang
Sent: Thursday, December 26, 2002 9:23 AM
To: linux-c-programming@vger.kernel.org
Subject: integrating c code and c++ code
Hi folks,
Does anyone have experience of integrating c code together with c++ code? I
know it may be unusual but I need to do it. The case is, I need to integrate
some well defined c++ wavelet classes into my c application, but I don't
have enough time to rewrite the wavelet classes in plain c. So how can I do
it? Any help or further pointer will be greatly appreciated. Many thanks.
QingHua Wang
-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2002-12-26 17:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-26 15:22 integrating c code and c++ code qhwang
2002-12-26 17:24 ` Joseph D. Wagner [this message]
2002-12-26 21:15 ` supersets (Was: RE: integrating c code and c++ code) Glynn Clements
2002-12-26 20:50 ` integrating c code and c++ code Glynn Clements
2003-01-02 16:24 ` Jamie Risk
2003-01-03 3:49 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000401c2ad03$a7940cc0$91271c43@joe' \
--to=wagnerjd@prodigy.net \
--cc=linux-c-programming@vger.kernel.org \
--cc=qhwang@ieeta.pt \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).