Command-line tool
swig
brew/swig
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Generate scripting interfaces to C/C++ code c++ c bindings
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id SWIG.SWIG -e scoop install swig
macOS
brew install swig
Linux
brew install swig
Generate a binding between C++ and Python
swig -c++ -python -o path/to/output_wrapper.cpp path/to/swig_file.i
Generate a binding between C++ and Go
swig -go -cgo -intgosize 64 -c++ path/to/swig_file.i
Generate a binding between C and Java
swig -java path/to/swig_file.i
Related command-line tools
- zits
Generate typescript bindings for zome code in Rust. - PHP 8.3
PHP command-line interface. php php83 - PHP 8.5
PHP command-line interface. php php85 - PHP 8.4
PHP command-line interface. php php84 - PHP 8.2 - Non-thread safe
PHP command-line interface. php php82 - PHP 8.3 - Non-thread safe
PHP command-line interface. php php83 - PHP 8.4 - Non-thread safe
PHP command-line interface. php php84 - PHP 8.5 - Non-thread safe
PHP command-line interface. php php85
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents