Quickstart: see the helloworld project for a very minimal example.
To compile a puredata external with c++ on macOS Catalina:
-
Use pd-lib-builder
-
Wrap
<name>_setup
function withextern "C" { <name_setup }
-
class_new
call in<name>_setup
should terminate withA_NULL
instead of0
. -
In the project
Makefile
, for macOS Catalina at least, add the following tocflags
:
cflags += -stdlib=libc++ -mmacosx-version-min=10.9