我正在将应用程序转换为使用 .dll 并且我充满了链接器错误说明
未解析的外部符号“__declspec(dllimport) public: void __thiscall Rail::SetNextrail(class Rail *)”
此错误消息的末尾有更多乱码。为什么会发生这种情况以及如何解决?__declspec(dllimport) 与定义为的宏一起放置:
#ifdef LUDOAI_EXPORT
#define DECLSPECAI __declspec(dllexport)
#else
#define DECLSPECAI __declspec(dllimport)
#endif