VS明明定义了函数却编译出错:error LNK2019: 无法解析的外部符号
来源:互联网 发布:云建站淘宝客 编辑:程序博客网 时间:2024/05/18 16:35
1>LINK : 没有找到 E:\VS2008\ASM_C_test\Debug\ASM_C_test.exe 或上一个增量链接没有生成它;正在执行完全链接
1>ASM_C_test.obj : error LNK2019: 无法解析的外部符号 "void __cdecl DSPF_sp_fftSPxSP(int,float *,float *,float *,unsigned char *,int,int,int)" (?DSPF_sp_fftSPxSP@@YAXHPAM00PAEHHH@Z),该符号在函数 _wmain 中被引用
1>ASM_C_test.obj : error LNK2019: 无法解析的外部符号 "void __cdecl DSPF_sp_fftSPxSP(int,float *,float *,float *,unsigned char *,int,int,int)" (?DSPF_sp_fftSPxSP@@YAXHPAM00PAEHHH@Z),该符号在函数 _wmain 中被引用
1>E:\VS2008\ASM_C_test\Debug\ASM_C_test.exe : fatal error LNK1120: 1 个无法解析的外部命令
明明定义了函数和声明却提示说error LNK2019: 无法解析的外部符号
因为你的文件是c文件,而工程是是c++的工程,你要在声明中用extern c来修饰
或者把定义的c文件改成cpp格式
#ifdef __cplusplusextern "C" {#endifvoid DSPF_sp_fftSPxSP_cn(int N, float *ptr_x, float *ptr_w, float *ptr_y,unsigned char *brev, int n_min, int offset, int n_max);#ifdef __cplusplus}#endif
阅读全文
0 0
- VS明明定义了函数却编译出错:error LNK2019: 无法解析的外部符号
- VS编程遇到error LNK2019: 无法解析的外部符号
- VS error LNK2019: 无法解析的外部符号 解决方案之一
- 错误 1 error LNK2019: 无法解析的外部符号 _WinMain@16 编译出错
- error LNK2019: 无法解析的外部符号
- error LNK2019(无法解析的外部符号)
- error LNK2019(无法解析的外部符号)
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- error LNK2019: 无法解析的外部符号
- c++中的accumulate()
- 本地费控与远程费控
- MyBatis Generator(MBG)日志信息
- Modbus测试工具ModbusPoll与Modbus Slave使用方法
- 兼容浏览器的最小高度(min-height)
- VS明明定义了函数却编译出错:error LNK2019: 无法解析的外部符号
- php 编码问题
- jquery选择 option li checkbox
- 日常信息用料
- 理解js中的原型链,prototype与__proto__的关系
- Swift4.0 新特性----Xcode9的优化
- 初来乍到!
- 解决php curl 报错:SSL connect error
- 欢迎使用CSDN-markdown编辑器