uisp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Uisp-dev] Error building under Cygwin: non-scalar type _LARGE_INTEG


From: Theodore A. Roth
Subject: Re: [Uisp-dev] Error building under Cygwin: non-scalar type _LARGE_INTEGER
Date: Mon, 6 Oct 2003 16:16:47 -0700 (PDT)


On Mon, 6 Oct 2003, Dean Ferreyra wrote:

> Hello,
>
> I just pulled the latest sources from CVS and when I built I got this error:
>
> ------------------------
> $ make
> make  all-am
> make[1]: Entering directory
> `/usr/local/martian/development/avr/uisp/uisp/src'
> if g++ -DHAVE_CONFIG_H -I. -I. -I.    -Wall -Werror -g -O2 -MT
> cygwinp.o -MD -MP -MF ".deps/cygwinp.Tpo" \
>   -c -o cygwinp.o `test -f 'cygwinp.C' || echo './'`cygwinp.C; \
> then mv -f ".deps/cygwinp.Tpo" ".deps/cygwinp.Po"; \
> else rm -f ".deps/cygwinp.Tpo"; exit 1; \
> fi
> cygwinp.C: In function `bool cygwinp_delay_usec(long int)':
> cygwinp.C:82: error: conversion from `int' to non-scalar type
> `_LARGE_INTEGER'
>    requested
> make[1]: *** [cygwinp.o] Error 1
> make[1]: Leaving directory
> `/usr/local/martian/development/avr/uisp/uisp/src'
> make: *** [all] Error 2
> ------------------------
>
> I made this simple change to fix it in my local tree:
>
> ------------------------
> *** cygwinp.C.~1.2.~  Sun Jun  2 18:54:41 2002
> --- cygwinp.C Mon Oct  6 15:16:21 2003
> ***************
> *** 79,85 ****
>   {
>       static bool perf_counter_checked = false;
>       static bool use_perf_counter = false;
> !     static LARGE_INTEGER freq = 0;
>
>       if (! perf_counter_checked) {
>       if (QueryPerformanceFrequency(&freq))
> --- 79,85 ----
>   {
>       static bool perf_counter_checked = false;
>       static bool use_perf_counter = false;
> !     static LARGE_INTEGER freq;
>
>       if (! perf_counter_checked) {
>       if (QueryPerformanceFrequency(&freq))
> ------------------------
>
> After that change, uisp is working for me.
>
> I'm using:
>
>   $ gcc --version
>   gcc (GCC) 3.3.1 (cygming special)
>
> and I ran the Cygwin setup on 9/21/2003.

I've committed this. I can't test this on my end since I don't have
cygwin.

Ted Roth

PS: Has anyone on the list built a canadian-cross to build cygwin apps
from linux? I've been looking into this to at least be able to test
cygwin builds on my linux boxen... (please respond off-list)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]