错误消息
在函数“function”中引用了无法解析的外部符号“symbol”
可是明明我已经设置 MSVC 链接了 这个 lib ,我能够100%保证这个函数在库里面定义了, 但是问题出在哪呢?
下面是对我的Solution
make
sure that the target that is being built is the same as the target that the libraries you have are. So if you've downloaded the 64-bit GLFW libraries, make sure your VS project is building for a Win64 target.
因为库的构建平台为64位
而MSVC 即使在 64位系统默认也是WIN32
要保证构建的平台是一样的,如下图
本文详细解释了在使用MSVC编译时遇到的错误消息,即在函数中引用了无法解析的外部符号。通过确保构建目标与库构建平台一致,可以解决该问题。具体操作包括确认使用了正确的编译配置,如针对64位目标编译64位库。

1491

被折叠的 条评论
为什么被折叠?



