VS2008 C++ lib project property setting problem
I created a C++ static library project in VS2008 using the wizard as following:
-Win32 application
-In "Application Settings", selected "Static Library"
-unchecked "Precompiled Header"
After it completed, I found that under "Project Properties->Configuration Properties", there is no "C/C++" section. I tried to create another static library project with the "Precompiled Header&quo开发者_开发知识库t; option checked and the "C/C++" section shows up.
Could somebody tell me why? Does it mean that without using "Precompiled Header", all other settings in "C/C++" section, like "Additional include directories", are not useful at all? Thank you very much.
"C\C++" section is presented only if you have any c\c++ files added to the project. In opposite case this section is useless because your library is not C\C++ library
The "precompiled header" section does not influence that. Maybe you had the solution selected in the Project Explorer. Try creating a new project with precompiled headers unchecked, be sure to have the Project selected when you open the properties.
精彩评论