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

#include<windows.h>
 main()
{
	    WinExec ("C:\\Windows\\Notepad.exe");
}

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.

Recommended Answers

All 3 Replies

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.