This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]