您的位置:首页 > 其它

error LNK2019: 无法解析的外部符号 _xxxx,该符号在函数 _VisualEn_Run 中被引用

2015-01-15 18:13 435 查看
出现该错误的原因主要可以归纳为以下两类:

1. 配置不正确,主要是没有包含xxx.lib之类的原因

2. 就是在进行C与C++混编的时候,在使用opencv的时候可能会出现。可通过以下方法解决

1. 将.cpp修改为.c

2. 修改头文件

将头文件标准化:

// Sfunction.h

#ifndef _SFUNCTION_H_

#define _SFUNCTION_H_

#ifdef __cplusplus

extern "C"

{

#endif

#include <stdlib.h>

#include <stdio.h>

#include <string.h>

#include <math.h>

#include "contrast.h"

#define E 2.71828182845904523536

int senhance(int* hist,int avglum,unsigned char*gamma);

#ifdef __cplusplus

}

#endif

#endif
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐