SWIG(1)

πŸ“¦ version 4.1.0, in debian bookworm, ubuntu jammy

πŸ’– 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 symbol symbol (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 in dir
  • -ignoremissing β€” ignore missing include files
  • -importall β€” follow all #include statements as imports
  • -includeall β€” follow all #include statements
  • -lifile β€” include SWIG library file ifile
  • -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 to name
  • -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 to outfile
  • -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 number n

πŸ’œ 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