Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Additional include directories in VS2010 for an "empty C++" project

I am creating a sample project (a Hello, World!) with libevent.

(Just for note: This question has got nothing to do with libevent but with Visual Studio. :-))

I compiled the library separately outside but under Visual Studio environment.

Wanted to test with a sample code and I started with creating a new project in VS2010. I selected Visual C++ --> General --> Empty Project.

When I selected the project properties to add the 'additional include directories' I do not find C/C++ node where it is usually added. This is how it looks: Additional include directories in VS2010 for an empty C++ project

However, when I select Visual C++ --> Win32 --> Win32 Console Application I will be able to see the C/C++ node and add the additional include directories.

I read this post and understood I can add the required directories in VC++ Directories --> Include Directories. But yet it's not so very advisable to change the default setting.

Is there any other way I can add additional include directories without selecting the C++ --> Win32 --> Win32 Console Application project? Just want to know.

like image 558
Ashwin Avatar asked Dec 31 '25 23:12

Ashwin


1 Answers

You need to have at least one .cpp file added to the project to be able to see the C/C++ settings. Otherwise, being an empty project, VS does not know what language you are using

like image 128
Attila Avatar answered Jan 06 '26 11:01

Attila



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!