Ask Your Question
0

i am getting this error please help me

asked 2014-12-05 12:41:38 -0500

TLEWA gravatar image

updated 2014-12-08 07:03:08 -0500

thdrksdfthmn gravatar image
1>------ Build started: Project: OPENCV_HELLO_WORLD, Configuration: Debug Win32 ------
1>Build started 12/6/2014 12:30:43 AM.
1>InitializeBuildStatus:
1>  Touching "Debug\OPENCV_HELLO_WORLD.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  OPENCV_HELLO_WORLD.cpp
1>c:\users\baundule corp\documents\visual studio 2010\projects\opencv_hello_world\opencv_hello_world\opencv_hello_world.cpp(8): warning C4627: '#include "opencv2/objdetect/objdetect.hpp"': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\baundule corp\documents\visual studio 2010\projects\opencv_hello_world\opencv_hello_world\opencv_hello_world.cpp(9): warning C4627: '#include "opencv2/highgui/highgui.hpp"': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\baundule corp\documents\visual studio 2010\projects\opencv_hello_world\opencv_hello_world\opencv_hello_world.cpp(10): warning C4627: '#include "opencv2/imgproc/imgproc.hpp"': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\baundule corp\documents\visual studio 2010\projects\opencv_hello_world\opencv_hello_world\tserial.h(41): fatal error C1014: too many include files : depth = 1024
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.75
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
edit retag flag offensive close merge delete

Comments

Please format your error message and give some additional information. This forum is run by volunteers and just dumping your error message here is not really motivating to help you.

FooBar gravatar imageFooBar ( 2014-12-06 12:22:45 -0500 )edit

I think this one is your problem (including more than once a header), please use #pragma once or the #ifndef... stuff

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-12-08 07:06:10 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-09 03:21:33 -0500

rahulvg gravatar image

Please check if you have included the path of opencv hpp files in "Project Properties ->Congig Properties --> C/C++ --> Additional Include directories"

edit flag offensive delete link more
0

answered 2014-12-07 07:19:40 -0500

mcsmurf gravatar image

Can you post your code here? Remember to use the preformatted text (Ctrl+K) option to paste the code or output of the compiler. To me it looks like you built a header loop somewhere. Like you include a header file test1.h which includes test2.h. And test2.h includes test1.h (and then you have a loop).

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-12-05 12:41:38 -0500

Seen: 813 times

Last updated: Dec 09 '14