error LNK2001: unresolved external symbol "*******__cdecl****"

error LNK2001: unresolved external symbol "*******__cdecl****"

这种连接错误是在C++文件里调用C程序导致的,解决方法是:

In the header file for C files (ANSI C), add the following 
prior to and after function prototypes.

#ifdef __cplusplus 
extern "C"
{
#endif
//////////////////////

code.....

/////////////////////
#ifdef __cplusplus
}
#endif

posted on 2012-09-21 21:04  龖龖  阅读(339)  评论(0编辑  收藏  举报

导航