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

  • Home
  • SEARCH
  • 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 8583959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:39:33+00:00 2026-06-11T21:39:33+00:00

I have an issue with Visual Studio’s 2012. I am also using Sams Teach

  • 0

I have an issue with Visual Studio’s 2012. I am also using “Sams Teach Yourself C++ in One Hour a day, 7th edition”.

After using google to find the “best” compilers for C++, Visual Studios seemed to be the tool of choice.

So I downloaded and installed Visual Studios 2012. The very first lesson in the book is (and tells me to run it as a console app by going to File > New > Project >Visual C++ > Win32 > Console Application )

 #include <iostream>

int main()
{
 std::cout << “Hello World!” << std::endl;
 return 0;
}

which doesnt work, at all. it outputs an error message similiar to the following:

1>c:\users\nik\documents\visual studio
2012\projects\consoleapplication4\consoleapplication4\consoleapplication4.cpp(8):
error C2065: ‘“Hello’ : undeclared identifier
1> Generating Code…
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========”

(there is more lines similiar to the first, but its rather long)

However, after googling and watching a video on youtube the following code works (using File > New > Project >Visual C++ > General > Empty Project )

#include <iostream>
#include "conio.h"

using namespace std;

int main() {
cout << "Hello Nik" << endl;
_getch();

return 0;
}

Does Visual Studio’s 2012 have a C++ compiler? or does it just have a visual c++ compiler (if thats even the issue, only reason I think it could be is I can see templates for Visual C++ but none for c++ by itself…) or do I need to download Visual Studio Express to download native c++ ??

Any help would be greatly appreciated as I am feeling some-what out of my depth here…

Thanks.

  • 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-11T21:39:34+00:00Added an answer on June 11, 2026 at 9:39 pm

    Besides aphostrophes you may need to disable precompiler headers in project properties.

    They are turned on by default in VS2012. If you are not familiar with precompiled headers turn them off.

    1. Right click on project (not solution)
    2. Click properties.
    3. Expand “Configuration properties”
    4. Expand “C/C++”
    5. Choose “Precompiled headers”
    6. Set “Precompiled header” to “Not Using Precompiled Headers”

    More information about precompiled headers and stdafx.h file at Wikipedia

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

Sidebar

Related Questions

We have a issue with using Linq expressions in our MVC views. Visual studio
While working with ASP.NET using Visual Studio (2008) I have discomfort issue: source code
I have some issue with the cv::HOGDescriptor in opencv 2.4.2 in Visual Studio 2012.
I have a somewhat strange issue with visual studio. Almost every time I create
I have an issue setting up an external tool in Visual Studio. The tool
I have an issue with the DotNetOpenAuth sample projects. I have Visual Studio 2008,
I have the issue with Visual Studio 2010, after a while, running exceptionally slowly
I have an issue running some moles tests within Visual Studio 2010. Within a
I have Visual Studio 2010 on Windows 7. My project is using the .net
I have recently started using Visual Studio 2010 and ReSharper 5.1. It's working pretty

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.