返回信息流编译的时候总是出错,无法解析的外部符号。
其中G729ACodec.cpp的源码如下
#include "StdAfx.h"
#include "G729ACodec.h"
#pragma comment(lib, "G729a.lib")
//G.729A库函数申明
extern "C" void va_g729a_init_encoder();
extern "C" void va_g729a_encoder(short *speech, unsigned char *bitstream);
extern "C" void va_g729a_init_decoder();
extern "C" void va_g729a_decoder(unsigned char *bitstream, short *synth_short, int bfi);
G729ACodec::G729ACodec(unsigned int frame_count){
frameCount=frame_count;
//初始化G729A编解码器
va_g729a_init_encoder();
va_g729a_init_decoder();
}
错误提示:
1>G729ACodec.obj : error LNK2019: 无法解析的外部符号va_g729a_init_decoder,该符号在函数"public: __cdecl G729ACodec::G729ACodec(unsigned int)" (??0G729ACodec@@QAA@I@Z) 中被引用
1>G729ACodec.obj : error LNK2019: 无法解析的外部符号va_g729a_init_encoder,该符号在函数"public: __cdecl G729ACodec::G729ACodec(unsigned int)" (??0G729ACodec@@QAA@I@Z) 中被引用
1>G729ACodec.obj : error LNK2019: 无法解析的外部符号va_g729a_encoder,该符号在函数"public: int __cdecl G729ACodec::Encode(char *,int,char *,int)" (?Encode@G729ACodec@@QAAHPADH0H@Z) 中被引用
1>G729ACodec.obj : error LNK2019: 无法解析的外部符号va_g729a_decoder,该符号在函数"public: int __cdecl G729ACodec::Decode(char *,int,char *,int)" (?Decode@G729ACodec@@QAAHPADH0H@Z) 中被引用
这是一条镜像帖。来源:北邮人论坛 / cpp / #24243同步于 2009/5/25
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
关于用g729a编filter是编译出的问题
anxiang2008
2009/5/25镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复