This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Does a resource.h for ming32 (gcc-2.95.2) exist?
- To: seichler <seichler at xtra dot co dot nz>
- Subject: Re: Does a resource.h for ming32 (gcc-2.95.2) exist?
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Tue, 30 Jan 2001 23:14:51 -0600 (CST)
- cc: gcc-bugs at gcc dot gnu dot org
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