“module”:无法在项目中指定不同的 module 属性
在编译中的两个文件中发现了具有不同参数列表的 module 属性。 每次编译只能指定一个唯一的 module
属性。
可以在多个源代码文件中指定相同的 module
属性。
例如,如果发现以下 module
特性:
// C3171.cpp
[ module(name="MyModule", uuid="373a1a4e-469b-11d3-a6b0-00c04f79ae8f", version="1.0") ];
int main() {}
然后,
// C3171b.cpp
// compile with: C3171.cpp
// C3171 expected
[ module(name="MyModule", uuid="373a1a4e-469b-11d3-a6b0-00c04f79ae8f", version="1.1") ];
编译器会生成 C3171(注意不同的版本值)。