You should check the contents that were provided by the libgc-dev
package. There is generally a compatibility file in /usr/include
called gc.h
, who's only purpose is to #include <gc/gc.h>
. Your distirbution may not have this file, which is causing the compilation problem.
To check the contents of libgc-dev
, you do a:
dpkg-query -L libgc-dev
This will list all the files that were provided by this package. If it doesn't contain /usr/include/gc.h
, then you may need to alter the #include
to read #include <gc/gc.h>
, or change the makefile to add: -I/usr/include/gc
. I'd change the -I
option as a last resort.
As an alternative, you can add a file in /usr/include
called gc.h
with the simple content:
/* This file is installed for backward compatibility. */
#include <gc/gc.h>