[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: |
Dean Ferreyra |
Subject: |
RE: [Uisp-dev] Error building under Cygwin: non-scalar type |
Date: |
Mon, 6 Oct 2003 16:27:36 -0700 |
$ cygcheck -c cygwin
Cygwin Package Information
Package Version Status
cygwin 1.5.5-1 OK
I'm guessing the definition of LARGE_INTEGER has changed at some point.
Here's what it looks like on my system (in /usr/include/w32api/winnt.h):
typedef union _LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
} u;
#if ! defined(NONAMELESSUNION) || defined(__cplusplus)
_ANONYMOUS_STRUCT struct {
DWORD LowPart;
LONG HighPart;
};
#endif /* NONAMELESSUNION */
LONGLONG QuadPart;
} LARGE_INTEGER, *PLARGE_INTEGER;
Dean
-----Original Message-----
From: E.Weddington [mailto:address@hidden
Sent: Monday, October 06, 2003 4:05 PM
To: Dean Ferreyra; address@hidden
Subject: Re: [Uisp-dev] Error building under Cygwin: non-scalar type
> 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