delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/31/11:19:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <01ad01c2f7a1$18bd9c30$cc0aa8c0@adexainc.com>
From: "Rob Siklos" <rsiklos AT adexa DOT com>
To: <cygwin AT cygwin DOT com>
References: <018101c2f79a$c4386650$cc0aa8c0 AT adexainc DOT com> <b69n9s$m1u$1 AT main DOT gmane DOT org> <20030331154134 DOT GA6503 AT redhat DOT com>
Subject: Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin
Date: Mon, 31 Mar 2003 11:17:59 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Spam-Status: No, hits=-16.7 required=11.0
tests=AWL,BAYES_01,ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT,REFERENCES,
UNSUB_PAGE
autolearn=ham version=2.50
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)

> >My first idea:  Windows doesn't provide gettimeofday.
>
> Bingo.

Oh- that's too bad.

Does anyone know if Windows provides something similar?  If so, how would I
access it from my program?

Thanks a lot,

Rob.

----- Original Message -----
From: "Christopher Faylor" <cgf-rcm AT cygwin DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Monday, March 31, 2003 10:41 AM
Subject: Re: 1.3.22: (gcc) problem using gettimeofday with -mno-cygwin


> On Mon, Mar 31, 2003 at 10:36:40AM -0500, Rolf Campbell wrote:
> >Rob Siklos wrote:
> >>Hello,
> >>
> >>I am trying to compile the following trivial program:
> >>
> >>((((
> >>#include <stdio.h>
> >>#include <sys/time.h>
> >>
> >>int main()
> >>{
> >>  struct timeval tv;
> >>  gettimeofday(&tv, NULL) ;
> >>  printf("%ld %ld\n", tv.tv_sec, tv.tv_usec);
> >>  return 0;
> >>}
> >>))))))))
> >>
> >>
> >>When I use gcc with no options, everything works fine.  However, if I
use
> >>the "-mno-cygwin" flag, I get the following error message:
> >>
> >>((((
> >>gcc -Wall -mno-cygwin    gettime.c   -o gettime
> >>gettime.c: In function `main':
> >>gettime.c:7: warning: implicit declaration of function `gettimeofday'
> >>/c/DOCUME~1/rsiklos/LOCALS~1/Temp/ccqKF5Mc.o(.text+0x37):gettime.c:
> >>undefined reference to `gettimeofday'
> >>make: *** [gettime] Error 1
> >>)))))
> >>
> >>Anybody have any ideas?  I am using the latest versions of everthing
from
> >>the cygwin installer.  cygcheck file attached.
> >
> >My first idea:  Windows doesn't provide gettimeofday.
>
> Bingo.
>
> cgf
> --
> Please use the resources at cygwin.com rather than sending personal email.
> Special for spam email harvesters: send email to aaaspam AT sourceware DOT org
> and be permanently blocked from mailing lists at sources.redhat.com
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019