在做cublas测试程序的适合遇到如下问题,查阅了相关解决方法,终于解决了,做个记录。
template.obj : error LNK2019: 无法解析的外部符号 cublasShutdown,该符号在函数 main 中被引用
template.obj : error LNK2019: 无法解析的外部符号 cublasGetVector,该符号在函数 main 中被引用template.obj : error LNK2019: 无法解析的外部符号 cublasGetError,该符号在函数 main 中被引用
template.obj : error LNK2019: 无法解析的外部符号 cublasSetVector,该符号在函数 main 中被引用
template.obj : error LNK2019: 无法解析的外部符号 cublasInit,该符号在函数 main 中被引用
项目-》属性-》链接-》附加依赖库下,添加cublas.lib
本文记录了在编写cublas测试程序时遇到的未解析外部符号错误,并提供了详细的解决方案:通过在项目属性中添加cublas.lib作为附加依赖来解决此问题。
31万+

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



