AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents