admin管理员组

文章数量:1244221

In a C++ project, there are enums with the same name from 2 different referenced dlls I don't own. And I'm getting this error:"'ExecutionMode': ambiguous symbol". How can I resolve the error??

The error is coming from this dll loaded as a nuget package, and it defines an enum like this:

typedef enum XxxMode {
  MODE1 = 0,
  MODE2 = 1,
} XxxMode ;

Another dll is C# module, and has enum named XxxMode as well. I need to keep this dll, but I don't need the enum in this dll... Is it possible to disable a specific enum??

本文标签: C project2 enums with the same name from 2 different referenced dllsStack Overflow