Re: Compilation errors in Standard header files
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Thu, 29 Sep 2005 22:51:58 -0700
Sriram <Sriram@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>I was trying to build the .exe for our project and its giving me compilation
>errors in standard header files supplied by VC++ like stdlib.h, objbase.h etc.
>When I write a simple C file, its not giving these compilation erros. My
>question is if its a real problem in header files, it should give the same
>erros for every aplication I build.So I doubt if I am missing any
>compiler/linker options.
>
>I am copying the errors occuring here:
>
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(249) : error
>C2226: syntax error : unexpected type 'T'
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(249) : error
>C2062: type 'const int' unexpected
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(249) : error
>C2059: syntax error : ')'
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(257) : error
>C2062: type 'const int' unexpected
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(257) : error
>C2059: syntax error : ')'
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(258) : error
>C2143: syntax error : missing ';' before '{'
>c:\program files\microsoft visual studio\vc98\include\stdlib.h(258) : error
>C2447: missing function header (old-style formal list?)
>
>Please let me know the solution for this as soon as possible.
>copy your reply to sriram.bhetanabottla@xxxxxxxxxxxxx
This does not make sense. In my vc98\include, lines 249 and 257 are
comments. Further, the string "const int" does not occur anywhere in the
file. I would guess that you have overwritten your copy of stdlib.h with
some other file.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Prev by Date: Re: Boost with VC6
- Next by Date: Re: Run-Time Check Failure #0
- Previous by thread: Re: Compilation errors in Standard header files
- Next by thread: Run-Time Check Failure #0
- Index(es):
Relevant Pages
|