最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

C++ project : 2 enums with the same name from 2 different referenced dlls - Stack Overflow

programmeradmin4浏览0评论

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??

发布评论

评论列表(0)

  1. 暂无评论