Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can not find C/C++ in project properties

I am following a tutorial and one of the steps its asking is to go to my projects properties and click on c/c++ and add a path to "Additional Include Directories" property. I am using visual C++ Express Edition 2008. the tutorial is using the same thing. Is there away to get this or an alternative ??

This is my screen alt text

This is tutorials screen alt text

like image 750
numerical25 Avatar asked Feb 22 '10 05:02

numerical25


People also ask

How do I get C to work in Visual Studio?

Download & Install the C/C++ Extension We need to click on the extension button that displays a sidebar for downloading and installing the C/C++ extension in the visual studio code. In the sidebar, type C Extension. In this image, click on the Install button to install the C/C++ extension.

Is C available in Visual Studio?

Visual Studio Code is a lightweight, cross-platform development environment that runs on Windows, Mac, and Linux systems. The Microsoft C/C++ for Visual Studio Code extension supports IntelliSense, debugging, code formatting, auto-completion.

How do I get Visual Studio project Properties code?

You access project properties by right-clicking the project node in Solution Explorer and choosing Properties, or by typing properties into the search box on the menu bar and choosing Properties Window from the results.

How do I add a compiler to Visual Studio?

In Visual Studio You can set compiler options for each project in its Visual Studio Property Pages dialog box. In the left pane, select Configuration Properties, C/C++ and then choose the compiler option category.

Why can't I See C/C++ in configuration properties?

After adding .cpp file it may not show C/C++ in the project's properties. This is because value of "Configuration Type" is "Utility". Change this value to .dll and apply. Now you can see C/C++ in Configuration Properties. Where do I change this?

How do I find project properties?

Some properties are common among all project types, and some are unique to specific languages or platforms. You access project properties by right-clicking the project node in Solution Explorer and choosing Properties, or by typing properties into the search box on the menu bar and choosing Properties Window from the results.

How to add C++ files to a Visual Studio project?

Or if you copied cpp files to a newly created project, you need to right click on the src folder and select "Include in Project", only then will visual studio consider them part of the project and show C++ in properties. (If you don't see "src" in your project, make sure to toggle "show all files" in the Solution Explorer options.)

How to enable C++ compiler in Visual Studio Code?

So, my solution is; Select the source file of the project in solution explorer, then right click to select the property of the c source file. Then select 'Item Type' to 'C/C++ compiler'. Then c/c++ category will appear.


1 Answers

You don't have the C++ compiler options until you're actually using the C++ compiler. In this case, you don't have a .cpp file. So just add one and the compiler options will appear.

like image 188
Travis Gockel Avatar answered Oct 21 '22 05:10

Travis Gockel