0

文件 kwcc_config.xml 包含我们项目使用的特定编译器的定义和包含路径。

由于不同项目的环境不同,我们需要不同的项目定义和路径。

是否可以选择为每个项目定义此类文件?如果是这样,我如何为每个项目分配 kwcc_config.xml 文件?

4

1 回答 1

0

kiamlaluno,

This file is not associated with a project, it is global per installation. It can contain entries for multiple compilers though.

The compiler are identified by the full path. So if different projects use different compilers (hence different default settings) you should introduce a separate section in the kwcc_config.xml.

Like this:

<configurations>
  <configuration>
     <compiler path="/path/to/your/compiler"/>
     ......
   </configuration>
</configurations>

But generally, most of the compilers should be configured automatically, hence not requiring editing kwcc_config.xml.

What compilers do you use?

于 2010-08-11T18:25:42.180 回答