Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8302673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:20:41+00:00 2026-06-08T17:20:41+00:00

I am compiling a executable Win32 console application in 2010 which was developed in

  • 0

I am compiling a executable Win32 console application in 2010 which was developed in VS 2005. I have checked all the settings with VS 2005, still it throws following Build Error. Please help.

       1>------ Rebuild All started: Project: vssreg, Configuration: Debug x64 ------
    1>  stdafx.cpp
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(543): error C2065: '_In_opt_z_' : undeclared identifier
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(543): error C2143: syntax error : missing ')' before 'const'
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(543): warning C4229: anachronism used : modifiers on data are ignored
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(543): error C2182: '_invalid_parameter' : illegal use of type 'void'
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(543): error C2491: '_invalid_parameter' : definition of dllimport data not allowed
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(543): error C2059: syntax error : ')'
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2065: '_In_opt_z_' : undeclared identifier
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2143: syntax error : missing ')' before 'const'
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): warning C4229: anachronism used : modifiers on data are ignored
    1>c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2182: '_invoke_watson' : illegal use of type 'void'

When I tried to put /ShowIncludes option , im getting following includes info

    1>------ Rebuild All started: Project: vssreg, Configuration: Debug x64 ------
1>  stdafx.cpp
1>  Note: including file: c:\rajesh\hak\hak27x64\2010\hak_27_x64\itxvssreg\stdafx.h
1>  Note: including file:  c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\iostream
1>  Note: including file:   c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\istream
1>  Note: including file:    c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ostream
1>  Note: including file:     c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ios
1>  Note: including file:      c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocnum
1>  Note: including file:       c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\climits
1>  Note: including file:        c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\yvals.h
1>  Note: including file:         c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h
1>  Note: including file:          C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\sal.h
1>  Note: including file:          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vadefs.h
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:20:42+00:00Added an answer on June 8, 2026 at 5:20 pm

    This line from your show includes is a bit of a giveaway

    C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\sal.h

    Somehow you are still including a VS 2005 header. As a first step I would try renaming the v6.1 directory see if that fixes the problem. If that’s it then look to your project settings so that C:\Program Files\Microsoft SDKs is not referenced.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a console application which works perfectly in 32 bit machine. But I'm
I have a VB.Net 1.1 application works just fine after compiling in Visual Studio.
I have a closed executable (with no source) which was compiled with VC++ 7.1
I have a certain application in MSVC6.0 all C code. I have it as
Currently I have a command line OSX executable that I am compiling in xcode.
I am using XCode for developing a C++ Console Application. After compiling XCode generates
I am building a win32 application in C++. I have two static lib projects
When compiling my wxWidget HelloWorld application, I am getting the following errors: Warning 1
Suppose I have have made a an osX app without using Xcode. After compiling
I was compiling a .NET application targeting x86-64; however, the application references a 32-bit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.