error LNK2019: 没法解析的外部符号

error LNK2019: 无法解析的外部符号
(环境是VS 2010,都是C语言编写的)在项目aostest中引用了aos的函数,aos生成的是.lib静态库,aostest生成exe,在aostest的附加目录里加不加aos.lib都会报错:error LNK2019: 无法解析的外部符号.另外函数声明和定义都有,引用时也没有拼写错误







1>aos_mock_svc.obj : error LNK2019: 无法解析的外部符号 "int __cdecl aos_vcf_svc_init(struct aos_vcf_svc *,struct aos_v_channel_env *)" (?aos_vcf_svc_init@@YAHPAUaos_vcf_svc@@PAUaos_v_channel_env@@@Z),该符号在函数 "int __cdecl aos_mock_svc_init(struct aos_mock_svc *,int,struct aos_v_channel_env *)" (?aos_mock_svc_init@@YAHPAUaos_mock_svc@@HPAUaos_v_channel_env@@@Z) 中被引用
1>aos_mock_svc.obj : error LNK2019: 无法解析的外部符号 "void __cdecl aos_vcf_svc_dtor(void *)" (?aos_vcf_svc_dtor@@YAXPAX@Z),该符号在函数 "void __cdecl aos_mock_svc_dtor(void *)" (?aos_mock_svc_dtor@@YAXPAX@Z) 中被引用
1>AosMcfSvcTest.obj : error LNK2019: 无法解析的外部符号 _aos_mock_svc_new,该符号在函数 "public: void __thiscall AosTest::AosMcfSvcTest::testAosMcfSvc2(void)" (?testAosMcfSvc2@AosMcfSvcTest@AosTest@@QAEXXZ) 中被引用
1>AosPhySvcTest.obj : error LNK2001: 无法解析的外部符号 _aos_mock_svc_new
1>mock_dev.obj : error LNK2019: 无法解析的外部符号 "void __cdecl x_dev_dtor(void *)" (?x_dev_dtor@@YAXPAX@Z),该符号在函数 "void __cdecl mock_dev_dtor(void *)" (?mock_dev_dtor@@YAXPAX@Z) 中被引用
1>mock_dev.obj : error LNK2019: 无法解析的外部符号 "int __cdecl x_dev_init(struct x_dev *)" (?x_dev_init@@YAHPAUx_dev@@@Z),该符号在函数 "int __cdecl mock_dev_init(struct mock_dev *)" (?mock_dev_init@@YAHPAUmock_dev@@@Z) 中被引用
1>mock_dev_factory.obj : error LNK2019: 无法解析的外部符号 "void __cdecl x_dev_factory_dtor(void *)" (?x_dev_factory_dtor@@YAXPAX@Z),该符号在函数 "void __cdecl mock_dev_factory_dtor(void *)" (?mock_dev_factory_dtor@@YAXPAX@Z) 中被引用
1>mock_dev_factory.obj : error LNK2019: 无法解析的外部符号 "int __cdecl x_dev_factory_init(struct x_dev_factory *)" (?x_dev_factory_init@@YAHPAUx_dev_factory@@@Z),该符号在函数 "int __cdecl mock_dev_factory_init(struct mock_dev_factory *)" (?mock_dev_factory_init@@YAHPAUmock_dev_factory@@@Z) 中被引用
1>D:\KJ\gateway_ground\stack\Debug\aosTest.exe : fatal error LNK1120: 7 个无法解析的外部命令

------解决方案--------------------
#pragma comment(lib,"aos")

------解决方案--------------------
看你另外一个帖子吧。