Re: Compilation errors in Standard header files

Tech-Archive recommends: Fix windows errors by optimizing your registry



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'

Most likely, you are including a badly written header before the
standard one. E.g. a header with unbalanced parentheses or braces will
cause weird errors that would seem to come from the subsequent code.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Compilation errors in Standard header files
    ... >errors in standard header files supplied by VC++ like stdlib.h, ... >When I write a simple C file, its not giving these compilation erros. ... >C2226: syntax error: unexpected type 'T' ... >C2062: type 'const int' unexpected ...
    (microsoft.public.vc.language)
  • Re: New versions of VC++ still stuck with function prototypes?
    ... could drastically improve compilation speed. ... better separation than the other languages. ... interface section and one implementation section. ... precompiled header files to speed up compilation. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: metapost or something? Coordinate system - transformation with cosine...
    ... hmm. ... @q ** Compilation. ... That's CWEB, but you don't really need it. ... GCC looks through the path for header files specified on your system, ...
    (comp.text.tex)
  • Re: New versions of VC++ still stuck with function prototypes?
    ... compilation time is a clean separation of interface from implementation. ... This separation can be accomplished through properly designed header files, ... I expect that we'll see a new language with the expressiveness of C++ ... but with a clean module concept before we see such featues in standar C++. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: New versions of VC++ still stuck with function prototypes?
    ... > that could drastically improve compilation speed. ... you've got nothing to separate a class interface from implementation. ... Concerning templates, ... > precompiled header files to speed up compilation. ...
    (microsoft.public.dotnet.languages.vc)