[PD] c++ objects?
august
august at alien.mur.at
Thu Aug 12 10:57:05 CEST 2010
> Hi,
>
> I would like to know if there are any Pd objects out there written in
> C++...
>
> thanks in advance,
> josé
>
> PS: It would be nice to have a C++ version of the examples that are in
> the externals howto...
> (http://pdstatic.iem.at/externals-HOWTO/HOWTO-externals-en.html).
I think there are quite a few written in C++.
AFAIK, you only need to take care about how you declare the setup function.
There may be other C++ -> C issues that I don't know about. But, in my
externals, this one issue is the only thing I can recall.
For example, the helloworld c code here:
http://pdstatic.iem.at/externals-HOWTO/node3.html#SECTION00036000000000000000
in C:
void helloworld_setup(void)
in C++:
extern "C" void helloworld_setup(void)
-august.
More information about the Pd-list
mailing list