Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的项目中使用两个 3rd 方库,但一个是使用 __stdcall 约定编译的,另一个是使用 __cdecl 编译的。无论我将项目属性设置为什么,LINKER 都无法链接一个或另一个库。有没有办法做到这一点?
调用约定外部代码编译应该是无关紧要的。只要使用正确的约定声明了适当的函数,您为自己的代码使用的约定就无关紧要,无论您做出什么选择,它都会起作用。