[SOLVED] compile only cmd.c
Posted: Wed Nov 14, 2012 5:43 am
Hello everyone,
I'm tired of click checkboxes if I acknowledge a service in Nagios.
So I wan't du modify the prechecked checkboxes.
I found this lines in cmd.cgi, so this is a compiled .c file.
I downloaded source-code of installed version and copied out the cmd.c
so my problem:
if I want to compile this cmd.c - file, it gives a lot of errors.
how can I compile this file?
I tried with "gcc cmd.c -o cmd.cgi",
this throws a lot of errors like "error: âOKâ undeclared (first use in this function)"
Can someone please help me?
Thanks a lot and kind regards
V3xX
I'm tired of click checkboxes if I acknowledge a service in Nagios.
So I wan't du modify the prechecked checkboxes.
I found this lines in cmd.cgi, so this is a compiled .c file.
I downloaded source-code of installed version and copied out the cmd.c
so my problem:
if I want to compile this cmd.c - file, it gives a lot of errors.
how can I compile this file?
I tried with "gcc cmd.c -o cmd.cgi",
this throws a lot of errors like "error: âOKâ undeclared (first use in this function)"
Can someone please help me?
Thanks a lot and kind regards
V3xX