任何人都可以告诉我这个节目....我在视觉工作室不好,所以尽快回答我 [英] Could any one tell me about this program....i am not good in visual studio, so answer me quick as possible

查看:65
本文介绍了任何人都可以告诉我这个节目....我在视觉工作室不好,所以尽快回答我的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用dlib和opencv创建一个人脸检测程序...同时构建获取以下错误... for ref ref



严重级代码描述项目文件行抑制状态

错误C2371'布尔':重新定义;不同的基本类型face_det c:\users\usuf \documents\jpeg-9b \ jmorecfg.h 309



1> c:\ usersrs \\ usuf \documents\jpeg-9b\jmorecfg.h(309):错误C2371:'boolean':重新定义;不同的基本类型

1> c:\program files(x86)\windows kits\10\include\10.0.15063.0\shared\rpcndr.h(193):note :看到'boolean'的声明

1> face.cpp



我尝试过:



1> c:\ usersrs \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\不同的基本类型

1> c:\program files(x86)\windows kits\10\include\10.0.15063.0\shared\rpcndr.h(193):note :查看'boolean'的声明

1> face.cpp

i am creating a face detection program using dlib and opencv..while building getting following error...for ur ref

Severity Code Description Project File Line Suppression State
Error C2371 'boolean': redefinition; different basic types face_det c:\users\usuf\documents\jpeg-9b\jmorecfg.h 309

1>c:\users\usuf\documents\jpeg-9b\jmorecfg.h(309): error C2371: 'boolean': redefinition; different basic types
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\rpcndr.h(193): note: see declaration of 'boolean'
1>face.cpp

What I have tried:

1>c:\users\usuf\documents\jpeg-9b\jmorecfg.h(309): error C2371: 'boolean': redefinition; different basic types
1>c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\rpcndr.h(193): note: see declaration of 'boolean'
1>face.cpp

推荐答案

阅读中定义顶部的注释jmorecfg.h 文件:

Read the comment on top of the definition in the jmorecfg.h file:
/*
 * On a few systems, type boolean and/or its values FALSE, TRUE may appear
 * in standard header files.  Or you may have conflicts with application-
 * specific header files that you want to include together with these files.
 * Defining HAVE_BOOLEAN before including jpeglib.h should make it work.
 */

所以只需将此行放在包含该文件的所有文件之上

So just place this line on top of all files that include the file

#define HAVE_BOOLEAN


这篇关于任何人都可以告诉我这个节目....我在视觉工作室不好,所以尽快回答我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆