| Both sides previous revision Previous revision Next revision | Previous revision |
| callable [2019/02/12 13:19] – [Building a program] gawrilow | callable [2026/09/17 12:17] (current) – external edit 127.0.0.1 |
|---|
| This page describes only those parts of the interface which are specific to the callable library. Software collaborating with polymake may (and in most cases even have to) use the Object and Function interfaces too; they are described on the [[user_guide:extend:clients|Client Development page]]. | This page describes only those parts of the interface which are specific to the callable library. Software collaborating with polymake may (and in most cases even have to) use the Object and Function interfaces too; they are described on the [[user_guide:extend:clients|Client Development page]]. |
| |
| Benjamin Lorenz gave a [[http://polymake.org/lib/exe/fetch.php/cal_pres.pdf|presentation]] on the callable library with [[http://polymake.org/lib/exe/fetch.php/callable.tbz|examples]]. | Benjamin Lorenz gave a {{ :cal_pres.pdf | presentation}} on the callable library, please note that the examples in the presentation might not work anymore. |
| | |
| | Examples corresponding to polymake version 4.14 can be {{ :callable-examples.tar.xz |downloaded here}}. |
| |
| ==== Main class ==== | ==== Main class ==== |
| |
| Methods: | Methods: |
| * ''%%prefer_now("label")%%'' corresponds to the [[::general#preferences|interactive command]] of the same name. | * ''%%prefer_now("label")%%'' corresponds to the [[user_guide:howto:shell_custom#preferences|interactive command]] of the same name. |
| * ''%%set_custom("name", value)%%'' temporarily changes the value of the given custom variable, until the Scope object is destroyed. Custom variables are specified in the same manner as in corresponding ''Main::set_custom'' methods. | * ''%%set_custom("name", value)%%'' temporarily changes the value of the given custom variable, until the Scope object is destroyed. Custom variables are specified in the same manner as in corresponding ''Main::set_custom'' methods. |
| |
| You can add an option ''%%--debug%%'' before ''%%--cflags%%'', ''%%--ldflags%%'', or ''%%--libs%%'' if you are going to debug your program together with polymake. Compiler options displayed without ''%%--debug%%'' provide for a build optimized for execution speed. | You can add an option ''%%--debug%%'' before ''%%--cflags%%'', ''%%--ldflags%%'', or ''%%--libs%%'' if you are going to debug your program together with polymake. Compiler options displayed without ''%%--debug%%'' provide for a build optimized for execution speed. |
| |
| For compilation with debugging enabled run ''%%make Debug=y%%'' (see also [[user_guide:extend:clients#building_and_debugging|here]]) and make sure to install with ''%%make install Debug=y%%''. When you run the program you need to set ''POLYMAKE_CLIENT_SUFFIX=-d'' either via ''.gdbinit'' or your environment. | |
| |