extern "C" int gcoGetLabels(int handle, LabelID *labels) { GCoptimization *gco = findInstance(handle); gco->whatLabel(0, gco->numSites(), labels); return 0; }