2011년 12월 18일 일요일

By using a text file, how to set the path of including files for Visual C++ sources

It is inconvenient to specify individually the path of a lot of including folders in the Visual C++. There is one way to solve this problem. That is to use a configured file like "include.cfg". It is a kind of text file.

First, create a text file named "include.cfg" in your project folder.
Second, on the include.cfg, add some folders in which there are some including files you want to use in your project.
  •   /I "C:\include\project\lib"
Third, register the include.cfg to the command line of visual studio.
  • Visual Studio > Property > Configuration Properties/C/C++/Command Line > Additional options: @include.cfg

댓글 없음:

댓글 쓰기