https://github.com/shakfu/pd-cpp
Basic example(s) of puredata externals using cpp
https://github.com/shakfu/pd-cpp
cpp puredata puredata-external
Last synced: 7 months ago
JSON representation
Basic example(s) of puredata externals using cpp
- Host: GitHub
- URL: https://github.com/shakfu/pd-cpp
- Owner: shakfu
- License: unlicense
- Created: 2022-01-04T21:26:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-06T01:31:39.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T16:12:08.308Z (9 months ago)
- Topics: cpp, puredata, puredata-external
- Language: Makefile
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# puredata externals in cpp
## Requirements
Quickstart: see the [helloworld](helloworld) project for a very minimal example.
To compile a puredata external with c++ on macOS Catalina:
1. Use [pd-lib-builder](https://github.com/pure-data/pd-lib-builder)
2. Wrap `_setup` function with `extern "C" { _setup` should terminate with `A_NULL` instead of `0`.
4. In the project `Makefile`, for macOS Catalina at least, add the following to `cflags`:
```bash
cflags += -stdlib=libc++ -mmacosx-version-min=10.9
```
## Credits
- ref: