I am currently trying to compile a project (DOMJudge) and the compilation fails on cgroup_init in -lcgroup
. When I looked to the script I found that this installer was looking for the gcc lib cgroup
called by the flag -lcgroup
.
But I don't find any information about such a lib on Linux or other systems.
gcc -lcgroup test.c
also returned error.
I have already tried to replace -lcgroup
by -lcgroups
.
The software which is supposed to be executed is this one
| #ifdef __cplusplus
| extern "C"
| #endif
| char cgroup_init ();
| int
| main ()
| {
| return cgroup_init ();
| ;
| return 0;
| }
So with the C and C++ standard, if you want to compile with a system library you use the -l<libname>
flag.