CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2014
    Posts
    1

    Release build is giving errors in WinInet.h

    Hi There,

    I used #include <WinInet.h> in my HTTP.h class and it is compiling without any probs in debug mode. But when I compile in release mode it gives 100 errors as follows.

    1>HTTP.cpp
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(58) : error C2146: syntax error : missing ';' before identifier 'HINTERNET'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(58) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(58) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(59) : error C2143: syntax error : missing ';' before '*'
    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(59) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    various errors keep going and it exceeds the maximum error count as follows and stop Release compilation.

    1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\WinInet.h(788) : fatal error C1003: error count exceeds 100; stopping compilation

    can some one help me.

    Thanks,

    Sam

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Release build is giving errors in WinInet.h

    Could this thread help you?
    If not - show your #includes for HTTP.cpp/HTTP.h and the differences in Debug/Release configurations.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured