ARGH! Getting "'DWORD' undeclared ..." when buiilding from source - did I break something?

McNulty Junior Bobby bmcnultyjunior@yahoo.com
Sat Dec 2 11:37:00 GMT 2000


DWORD is defined there.
So is u_char, u_long, u_int and a bunch of others
under wtypes.h.
My suggestion is look at where GCC is complaining
from.
I had a program give me empy declations.
Solution was to un-refer the ones in the program.
So
in Csound, in the sysdep.h, under the win32 part,
#define u_char char
etc
I commented them out and recompiled.
Next trial, because i was going to make a Windows
console program. I changed "ifdef WIN32" to #if
defined(WIN32) && defined(__MINGW32__)"
and umcommented the u_char, u_long, u_int, u_short

If I could redesigh Csound i would use "#include
<windows.h>" 
that way, it would all be taken care of.











--- "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
wrote:
> At 04:19 PM 12/2/2000, Andreas Eibach wrote:
> >Heck, what's this?
> >
> >Could it be I've broken up my whole Cygwin system?
> >I'm about to think I have.
> >
> >I get "'DWORD' undeclared" with every application I
> want to build with
> >Cygwin that uses this.
> >
> >I did some text greps through the whole include
> tree but - no success so
> >far.
> >I can't find the place where DWORD is declared in
> Cygwin!
> >
> >Could you please help me?
> >Thanks
> >
> >Andreas
> 
> 
> 
> Perhaps someone can help me understand why people
> are having these kinds of
> problems.  I find DWORD defined as:
> 
> typedef unsigned long DWORD;
> 
> in /usr/include/windef.h.
> 
> This file comes from the w32api package (yes, this
> time I took the time to 
> go find the definition and track the file to its
> package myself!;-))  Are
> questions like these popping up just because people
> aren't installing all 
> the packages (but still expecting everything to work
> fine!;-)) or is there
> some other reason I don't understand that accounts
> for problems like this?
> 
> 
> 
> Larry Hall                             
> lhall@rfk.com
> RFK Partners, Inc.                     
> http://www.rfk.com
> 118 Washington Street                   (508)
> 893-9779 - RFK Office
> Holliston, MA 01746                     (508)
> 893-9889 - FAX
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to
> cygwin-unsubscribe@sourceware.cygnus.com
> 


=====
Robert McNulty Junior
Robert McNulty Junior (C) 2000
email: bmcnultyjunior@yahoo.com
Homepage: http://www.geocities.com/bmcnultyjunior
AIM:bmcnultyjrsap
Featuring Csound compiled with a Win32/Intel Based Compiler

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list