944,006 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2852
  • C RSS
Mar 4th, 2009
0

winbase.h problem

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hellIon is offline Offline
18 posts
since Nov 2008
Mar 4th, 2009
0

Re: winbase.h problem

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Mar 4th, 2009
0

Re: winbase.h problem

http://userpages.umbc.edu/~squire/download/WinBase.h
i downloaded it from here
hey can u upload ur version of winbase.h ???
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hellIon is offline Offline
18 posts
since Nov 2008
Mar 4th, 2009
0

Re: winbase.h problem

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: cd command in shell
Next Thread in C Forum Timeline: how to read a raw file of jpeg image using turbo c





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC