--- tsp.c.old 2004-12-03 15:38:26.000000000 +0100 +++ tsp.c 2004-12-03 15:40:52.000000000 +0100 @@ -89,6 +89,25 @@ /* ====================================================================== + Work-around til fejl iforb. med ny glibc + Løsningen er baseret på http://gcc.gnu.org/ml/libstdc++/2002-09/msg00115.html + + Martin Parm, EDB-afdelingen, 3/12-2004 + ====================================================================== */ + +#include + +__const unsigned short int *__ctype_b; +__const __int32_t *__ctype_tolower; +__const __int32_t *__ctype_toupper; + +void ctSetup(){ + __ctype_b = *(__ctype_b_loc()); + __ctype_toupper = *(__ctype_toupper_loc()); + __ctype_tolower = *(__ctype_tolower_loc()); +} + +/* ====================================================================== global variables ====================================================================== */ @@ -1068,6 +1087,8 @@ char infile[100], model[100], solution[100], usecplex[100]; boolean intsolution, cplex; + ctSetup(); + if (argc >= 3) { strcpy(infile, argv[1]); strcpy(model, argv[2]);