
Krzysztof Jakubczyk wrote:
I get following error when trying to compile PPL under MinGW:
make[4]: Entering directory `/c/ppl-0.10.2/demos/ppl_lcdd/examples'
make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/c/ppl-0.10.2/demos/ppl_lcdd/examples' make[4]: Entering directory `/c/ppl-0.10.2/demos/ppl_lcdd' g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I../../utils -I/usr/local /include -g -O2 -frounding-math -W -Wall -MT ppl_lcdd.o -MD -MP -MF .deps/ppl_ lcdd.Tpo -c -o ppl_lcdd.o ppl_lcdd.cc ppl_lcdd.cc:138:27: error: sys/resource.h: No such file or directory ppl_lcdd.cc: In function 'void<unnamed>::limit_virtual_memory(unsigned int)': ppl_lcdd.cc:336: error: aggregate '<unnamed>::rlimit t' has incomplete type and cannot be defined ppl_lcdd.cc:338: error: 'RLIMIT_AS' was not declared in this scope ppl_lcdd.cc:338: error: 'getrlimit' was not declared in this scope ppl_lcdd.cc:343: error: 'RLIMIT_AS' was not declared in this scope ppl_lcdd.cc:343: error: 'setrlimit' was not declared in this scope make[4]: *** [ppl_lcdd.o] Error 1
Hi Krzysztof,
this is strange, because in ppl_lcdd.cc I see
#ifdef PPL_HAVE_SYS_RESOURCE_H // This should be included after <time.h> and <sys/time.h> so as to make // sure we have the definitions for, e.g., `ru_utime'. # include <sys/resource.h> #endif
which should meand that <sys/resource.h> is included only if configure determined that that header file is present. Can you please check in the config.log and ppl-config.h? All the best,
Roberto