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>_setupfunction withextern "C" { <name_setup } -
class_newcall in<name>_setupshould terminate withA_NULLinstead of0. -
In the project
Makefile, for macOS Catalina at least, add the following tocflags:
cflags += -stdlib=libc++ -mmacosx-version-min=10.9