SWIG(1)
π SWIG(1) β bestie edition π
General Commands Manual Β· the swig page, but make it a group chat
β¨ NAME β¨
swig β Simplified Wrapper and Interface Generator π¦
πΈ SYNOPSIS πΈ
swig [options] file
π DESCRIPTION π
okay so. the swig command is literally the whole point of this page: it makes wrapper code that glues your C and C++ code to scripting languages like Perl, Python, etc. β and it does that from the definition of the interface. that's the whole vibe π
if you want the deep lore on how to actually write those interface definitions, bestie, go read /usr/share/doc/swig-doc/Manual/index.html from the swig-doc package. this manpage? it's focused on one thing only: explaining how you invoke the swig command. periodt.
π OPTIONS π
π Target Language Options:
pick your language, pick your destiny β¨
-chickenβ generate CHICKEN wrappers π-csharpβ generate C# wrappers-guileβ generate Guile wrappers-javaβ generate Java wrappers-mzschemeβ generate Mzscheme wrappers-ocamlβ generate Ocaml wrappers-perlβ generate Perl wrappers.-phpβ generate PHP wrappers-pikeβ generate Pike wrappers-pythonβ generate Python wrappers-rubyβ generate Ruby wrappers-sexpβ generate Lisp S-Expressions wrappers-tclβ generate Tcl wrappers-xmlβ generate XML wrappers.
π«Ά General Options
the main character options, fr fr π
-c++β turn on C++ processing-coβ check a file out of the SWIG library-dirprotβ turn on wrapping of protected members for director classes-Dsymbolβ define a symbolsymbol(for conditional compilation)-Eβ preprocess only, does not generate wrapper code-fcompactβ compile in compact mode-fvirtualβ compile in virtual elimination mode-Fstandardβ display error/warning messages in commonly used format-Fmicrosoftβ display error/warning messages in Microsoft format-helpβ show a summary of supported options and especially of supported options for the selected language.-Idirβ look for SWIG files indir-ignoremissingβ ignore missing include files-importallβ follow all#includestatements as imports-includeallβ follow all#includestatements-lifileβ include SWIG library fileifile-Mβ list all dependencies-MMβ list dependencies, but omit files in SWIG library-makedefaultβ create default constructors/destructors (the default)-module nameβ set module name toname-nocontractβ turn off contract checking-nodefaultβ do not generate constructors/destructors-nodirprotβ do not wrap director protected members-noexceptβ do not wrap exception specifiers-noexternβ do not generate extern declarations-noruntimeβ do not include SWIG runtime code-o outfileβ set name of the output file tooutfile-outdir dirβ set language specific files output directory-runtimeβ make the runtime support code globally visible.-smallβ compile in virtual elimination & compact mode-swiglibβ report location of SWIG library and exit-vβ run in verbose mode-versionβ print SWIG version number-Wallβ enable all warning messages-Wallkwβ enable warning messages for all the languages keywords-Werrorβ force to treat the warnings as errors-w nβ suppress warning numbern
π AUTHOR π
SWIG was originally created by David Beazley. for up-to-date info about authors and contributors, bestie, go check http://www.swig.org/guilty.html. π
this manual page was written by Torsten Landschoff <torsten@debian.org> for the Debian project (but may be used by others). iconic of them honestly π«Ά
and that's the tea, bestie β this page is from 2004-05-22, part of the SWIG(1) manual set. go write some wrappers, you absolute legend π β¨
π¦ where this page comes from
- debian bookworm: swig4.0 4.1.0-0.2
- ubuntu jammy: swig4.0 4.0.2-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms