LABLGTK2(1)
π NAME π
lablgtk2 β bestie, this is the manual page for lablgtk2, version 2.18.14, and she is serving documentation π
β¨
β¨ SYNOPSIS β¨
ocaml <options> <files>
That's the whole vibe: you run ocaml, you hand her some <options>, you hand her some <files>, and she goes off. Periodt π¦
π DESCRIPTION π
okay so. the options. there are so many of them. do not panic, we're getting through all of them together, hand in hand π«Ά
Options are:
-absnameβ show absolute filenames in error messages β¨-no-absnameβ do not try to show absolute filenames in error messages (this is the default, so like, chill mode) π-alert <list>β enable or disable alerts according to<list>, and the<list>grammar goes like this:+<alertname>β enable alert<alertname>π-<alertname>β disable alert<alertname>++<alertname>β treat<alertname>as a fatal error π--<alertname>β treat<alertname>as non-fatal@<alertname>β enable<alertname>and treat it as a fatal error- also
<alertname>can be'all'to refer to all alert names π (yes, all of them, she's an overachiever)
-I <dir>β add<dir>to the list of include directories π-H <dir>β add<dir>to the list of "hidden" include directories. (Like-I, but the program can not directly reference these dependencies) β sneaky, lowkey, we love her π«£-init <file>β load<file>instead of the default init file-labelsβ use commuting label mode-alias-depsβ do record dependencies for module aliases-no-alias-depsβ do not record dependencies for module aliases-app-functβ activate applicative functors-no-app-functβ deactivate applicative functors-noassertβ do not compile assertion checks-noinitβ do not load any init file-nolabelsβ ignore non-optional labels in types-promptβ output prompts (default) π¬-nopromptβ suppress all prompts π€-nopromptcontβ suppress prompts for continuation lines of multi-line inputs-nostdlibβ do not add the default directory to the list of include directories-nocwdβ do not implicitly add the current directory to the load path-nopervasivesβ (undocumented) π«₯ literally no notes, she's mysterious-open <module>β opens the module<module>before typing-ppx <command>β pipe abstract syntax trees through preprocessor<command>π°-keywords <version+list>β set keywords following the<version+list>spec:-<version>β if present specifies the base set of keywords (if absent the current set of keywords is used)-<list>β is a"+"-separated list of keywords to add to the base set of keywords.
-principalβ check principality of type inference-no-principalβ do not check principality of type inference (default)-rectypesβ allow arbitrary recursive types π-no-rectypesβ do not allow arbitrary recursive types (default)-safe-stringβ (default unconditionally since 5.0) β she said "I'm the default now" and meant it π-safer-matchingβ do not use type information to optimize pattern-matching-short-pathsβ shorten paths in types-stdinβ read script from standard input-strict-sequenceβ left-hand part of a sequence must have typeunit-no-strict-sequenceβ left-hand part of a sequence need not have typeunit(default)-strict-formatsβ reject invalid formats accepted by legacy implementations (default)
β οΈ Warning: Invalid formats may behave differently from previous OCaml versions, and will become always-rejected in future OCaml versions. You should always use this flag to detect invalid formats so you can fix them.
-no-strict-formatsβ accept invalid formats accepted by legacy implementations
π¨ Warning: Invalid formats may behave differently from previous OCaml versions, and will become always-rejected in future OCaml versions. You should never use this flag and instead fix invalid formats. β like, never never. I'm so serious bestie π
-unboxed-typesβ unannotated unboxable types will be unboxed-no-unboxed-typesβ unannotated unboxable types will not be unboxed (default)-unsafeβ do not compile bounds checking on array and string access π³ (yes, that's as spicy as it sounds)-unsafe-stringβ (option not available) β she's retired, gone, not coming back πͺ¦-versionβ print version and exit--versionβ print version and exit-no-versionβ do not print version at startup-vnumβ print version number and exit-w <list>β enable or disable warnings according to<list>, and here's the grammar:+<spec>β enable warnings in<spec>-<spec>β disable warnings in<spec>@<spec>β enable warnings in<spec>and treat them as errors π- and
<spec>can be:<num>β a single warning number<num1>..<num2>β a range of consecutive warning numbers<letter>β a predefined set
- the default setting is
"+a-4-7-9-27-29-30-32..42-44-45-48-50-60-66..70-74"β yes copy it exactly, do not freestyle it, I'm begging π
-warn-error <list>β enable or disable error status for warnings according to<list>. See option-wfor the syntax of<list>. Default setting is"-a"-warn-helpβ show description of warning numbers π- <file>β treat<file>as a file name (even if it starts with`-') β protective queen behavior π‘οΈ-color {auto|always|never}β enable or disable colors in compiler messages π. The following settings are supported:autoβ use heuristics to enable colors only if supportedalwaysβ enable colorsneverβ disable colors- The default setting is
'auto', and the current heuristic checks that theTERMenvironment variable exists and is not empty or"dumb", and thatisatty(stderr)holds. - If the option is not specified, these setting can alternatively be set through the
OCAML_COLORenvironment variable.
-error-style {contextual|short}β control the way error messages and warnings are printed π. The following settings are supported:shortβ only print the error and its locationcontextualβ like"short", but also display the source code snippet corresponding to the location of the error- The default setting is
'contextual'. - If the option is not specified, these setting can alternatively be set through the
OCAML_ERROR_STYLEenvironment variable.
-dno-unique-idsβ (undocumented) π«₯-dunique-idsβ (undocumented) π«₯-dno-locationsβ (undocumented) π«₯-dlocationsβ (undocumented) π«₯-dsourceβ (undocumented) π«₯-dparsetreeβ (undocumented) π«₯-dtypedtreeβ (undocumented) π«₯-dshapeβ (undocumented) π«₯-drawlambdaβ (undocumented) π«₯-dlambdaβ (undocumented) π«₯-dinstrβ (undocumented) π«₯-args <file>β read additional newline-terminated command line arguments from<file>π-args0 <file>β read additional null character terminated command line arguments from<file>π«§-e <script>β evaluate given script-helpβ display this list of options--helpβ display this list of options
and that's the whole thing, bestie. every single flag, accounted for, no cap π
this was lablgtk2 2.18.14, stamped July 2025 β go forth and compile something iconic, you absolute main character ππΈ
π¦ where this page comes from
- fedora 43: ocaml-lablgtk 2.18.14-3.fc43 Β· LGPL-2.0-only WITH OCaml-LGPL-linking-exception AND LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms