wingetopt

getopt library for Windows compilers

Latest version: 2025.12.01

Add to xmake.lua

add_requires("wingetopt 2025.12.01")

Learn how to add and link packages with Xmake →

Information

Recipe updated
2026-01-29T01:56:41.000Z

Platforms

  • mingw: i386, x86_64, arm, arm64
  • windows: x86, x64, arm, arm64, arm64ec

Options

No configurable options.

Versions

  • 2023.10.29
  • 2025.12.01

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "wingetopt 2025.12.01"

show info

xrepo info "wingetopt"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("wingetopt 2025.12.01")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("wingetopt")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "wingetopt 2025.12.01" shell