1. Home
  2. Knowledge Base
  3. Problems (EN)
  4. Error compiling Pandora FMS Windows agent 1.2: error: `CreateJobObject’ undeclared

Error compiling Pandora FMS Windows agent 1.2: error: `CreateJobObject’ undeclared

modules/pandora_module_exec.cc:62: error: `CreateJobObject' undeclared (first use this function)

Take a look at the comment just above to line 60 of modules/pandora_module_exec.cc file. There is the solution to that problem. The solution is to open include windef.h in the Dev-CPP include directory, locate WINDEF definition and change its value to 0x0500.

The reason is that in the MS Windows®’ DLL there are functions to create jobs process in order to avoid zombies process, but they are not public in the API because a macro that defines the Windows version avoids it. If you change this define to a higher value it will work magically. But only in Windows versions later than 2000. We do not plan to support versions earlier than 2000 so there is no problem.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support