winbase.h problem

Reply

Join Date: Nov 2008
Posts: 18
Reputation: hellIon is an unknown quantity at this point 
Solved Threads: 0
hellIon hellIon is offline Offline
Newbie Poster

winbase.h problem

 
0
  #1
Mar 4th, 2009
i am using pelles c
y am i getting these errors ?
something wrong wid the winbase header file??
if yes then can u tell me from where should i download another one
  1. #include<windows.h>
  2. main()
  3. {
  4. WinExec ("C:\\Windows\\Notepad.exe");
  5. }
C:\Program Files\PellesC\Include\Win\basetsd.h(17): error #2001: Syntax error: expected ';' but found 'INT64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(17): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\basetsd.h(21): error #2121: Redeclaration of '__int64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(21): error #2001: Syntax error: expected ';' but found 'UINT64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(21): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\basetsd.h(156): error #2121: Redeclaration of '__int64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(156): error #2001: Syntax error: expected ';' but found 'ULONG64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(156): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\basetsd.h(157): error #2121: Redeclaration of '__int64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(157): error #2001: Syntax error: expected ';' but found 'DWORD64'.
C:\Program Files\PellesC\Include\Win\basetsd.h(157): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(288): error #2121: Redeclaration of '__int64'.
C:\Program Files\PellesC\Include\Win\winnt.h(288): error #2001: Syntax error: expected ';' but found 'ULONGLONG'.
C:\Program Files\PellesC\Include\Win\winnt.h(288): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(290): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(290): error #2121: Redeclaration of 'ULONGLONG'.
C:\Program Files\PellesC\Include\Win\winnt.h(290): error #2001: Syntax error: expected ';' but found '*'.
C:\Program Files\PellesC\Include\Win\winnt.h(290): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(301): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(315): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(2094): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(2590): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2591): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2592): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2593): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2594): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2595): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2596): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2597): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2598): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2599): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(2787): error #2001: Syntax error: expected '}' but found 'DWORD64'.
C:\Program Files\PellesC\Include\Win\winnt.h(2788): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(2788): error #2001: Syntax error: expected ';' but found 'ExceptionAddress'.
C:\Program Files\PellesC\Include\Win\winnt.h(2788): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(2791): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(2791): error #2001: Syntax error: expected ';' but found 'ExceptionInformation'.
C:\Program Files\PellesC\Include\Win\winnt.h(2791): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(2792): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\winnt.h(2792): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(2796): error #2001: Syntax error: expected '}' but found 'PCONTEXT'.
C:\Program Files\PellesC\Include\Win\winnt.h(2797): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\winnt.h(2797): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3176): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3182): error #2078: Invalid struct field declarations.
C:\Program Files\PellesC\Include\Win\winnt.h(3182): error #2001: Syntax error: expected '}' but found 'DWORD64'.
C:\Program Files\PellesC\Include\Win\winnt.h(3183): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3183): error #2001: Syntax error: expected ';' but found 'StackBase'.
C:\Program Files\PellesC\Include\Win\winnt.h(3183): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3184): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3184): error #2001: Syntax error: expected ';' but found 'StackLimit'.
C:\Program Files\PellesC\Include\Win\winnt.h(3184): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3185): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3185): error #2001: Syntax error: expected ';' but found 'SubSystemTib'.
C:\Program Files\PellesC\Include\Win\winnt.h(3185): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3187): error #2078: Invalid union field declarations.
C:\Program Files\PellesC\Include\Win\winnt.h(3187): error #2001: Syntax error: expected '}' but found 'DWORD64'.
C:\Program Files\PellesC\Include\Win\winnt.h(3187): error #2014: Empty declaration.
C:\Program Files\PellesC\Include\Win\winnt.h(3189): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\winnt.h(3190): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3190): error #2001: Syntax error: expected ';' but found 'ArbitraryUserPointer'.
C:\Program Files\PellesC\Include\Win\winnt.h(3190): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3191): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3191): error #2001: Syntax error: expected ';' but found 'Self'.
C:\Program Files\PellesC\Include\Win\winnt.h(3191): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3192): error #2156: Unrecognized declaration.
C:\Program Files\PellesC\Include\Win\winnt.h(3192): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winnt.h(3650): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3753): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3785): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3786): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3787): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3790): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3794): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3795): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3796): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3797): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3867): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3868): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3869): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3870): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3905): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3906): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3907): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3908): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3909): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3910): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3933): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3977): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(3978): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3979): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(3980): error #2186: 'unsigned short int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(4076): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winnt.h(4087): error #2161: Extraneous old-style parameter list.
C:\Program Files\PellesC\Include\Win\winnt.h(4753): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winnt.h(4754): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\windef.h(166): warning #2203: Function 'FARPROC' can't be __stdcall, changed to __cdecl.
C:\Program Files\PellesC\Include\Win\windef.h(167): warning #2203: Function 'NEARPROC' can't be __stdcall, changed to __cdecl.
C:\Program Files\PellesC\Include\Win\windef.h(168): warning #2203: Function 'PROC' can't be __stdcall, changed to __cdecl.
C:\Program Files\PellesC\Include\Win\winbase.h(231): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winbase.h(234): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winbase.h(284): warning #2203: Function 'PTHREAD_START_ROUTINE' can't be __stdcall, changed to __cdecl.
C:\Program Files\PellesC\Include\Win\winbase.h(290): warning #2203: Function 'PFIBER_START_ROUTINE' can't be __stdcall, changed to __cdecl.
C:\Program Files\PellesC\Include\Win\winbase.h(440): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(441): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(442): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(443): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(444): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(445): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(446): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(447): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(470): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(471): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(472): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(473): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(474): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(475): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(476): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(477): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(478): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(479): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(480): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(481): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(482): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(483): error #2186: 'unsigned long int' is an illegal bit-field type.
C:\Program Files\PellesC\Include\Win\winbase.h(525): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winbase.h(526): error #2047: Expected a field name.
C:\Program Files\PellesC\Include\Win\winbase.h(746): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winbase.h(746): error #2001: Syntax error: expected ';' but found 'LPCONTEXT'.
C:\Program Files\PellesC\Include\Win\winbase.h(746): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winbase.h(748): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\winbase.h(748): error #2121: Redeclaration of 'PEXCEPTION_POINTERS'.
C:\Program Files\PellesC\Include\Win\winbase.h(748): error #2001: Syntax error: expected ';' but found 'LPEXCEPTION_POINTERS'.
C:\Program Files\PellesC\Include\Win\winbase.h(748): fatal error #2210: More than 100 errors, please improve yourself.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,358
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1463
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: winbase.h problem

 
0
  #2
Mar 4th, 2009
Post your version of that file. Mine doesn't have INT64 on line 17. Or maybe you should use a different compiler, such as free Microsoft VC++ 2008 Express.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 18
Reputation: hellIon is an unknown quantity at this point 
Solved Threads: 0
hellIon hellIon is offline Offline
Newbie Poster

Re: winbase.h problem

 
0
  #3
Mar 4th, 2009
http://userpages.umbc.edu/~squire/download/WinBase.h
i downloaded it from here
hey can u upload ur version of winbase.h ???
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,358
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1463
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: winbase.h problem

 
0
  #4
Mar 4th, 2009
uploading header files is useless without the libraries that go along with them. If they were not part of your compiler when you installed it then either (1) your compiler doesn't support them, or (2) download the entire Windows Platform SDK. You can also order it on DVD. This is a very large download and may take a lot of time over slow modem or outside USA.

Better approach is to ditch that compiler and download VC++ 2008 Express.
Last edited by Ancient Dragon; Mar 4th, 2009 at 11:42 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC