This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revisionBoth sides next revision |
callable [2019/02/12 13:19] – [Building a program] gawrilow | callable [2019/02/12 13:22] – [Building a program] gawrilow |
---|
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. | |
| |