[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Uisp-dev] Error building under Cygwin: non-scalar type
From: |
E . Weddington |
Subject: |
Re: [Uisp-dev] Error building under Cygwin: non-scalar type |
Date: |
Mon, 6 Oct 2003 23:05:27 GMT |
> 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.
>
> Dean
I just pulled the latest uisp from CVS.
Builds fine for me with:
Cygwin
gcc 3.2 20020927
cygwin1.dll version 1.3.22-1
Dean, what version of cygwin1.dll do you have? 1.5.x?
Eric
- Re: [Uisp-dev] Error building under Cygwin: non-scalar type,
E . Weddington <=