Does a resource.h for ming32 (gcc-2.95.2) exist?

Mumit Khan khan@NanoTech.Wisc.EDU
Tue Jan 30 21:15:00 GMT 2001


On Wed, 31 Jan 2001, seichler wrote:

> Trying to run:
> 
> LAPACK++ 1.1 Linear Algebra Package 1.1
> University of Tennessee, Knoxville, TN.
> Oak Ridge National Laboratory, Oak Ridge, TN.
> 
> Does a compatible resource.h for ming32 (gcc-2.95.2) exist?  It rejects resource.h transferred from Cygwin gcc. 
> 
> Thanks for the benefit of your experience.

I'm sure you realize that this is not a compiler issue, but rather with
the underlying runtime, which is mingw or msvc in this case.

That said, there is no direct equivalent of sys/resource.h in Mingw, and
you can fix it one of two ways:

1. Quick hack: Use #ifdef ... #endif to disable the code that uses that
uses getrlimit or getrusage or one of those.

2. Use Windows32 API to do it right.

I assume that this code is to do the timing, so you can just comment
it out for now.

Regards,
Mumit




More information about the Gcc-bugs mailing list