Ask Your Question
-3

Problem with core.hpp under Windows!

asked 2012-07-12 02:38:36 -0500

the_shadow gravatar image

updated 2018-01-04 07:54:46 -0500

Hello, I'm programming under Windows 7 using Visual Studio 2010, and I have a problem with one of the header files in opencv - core.hpp When compiling I get a tons of error messages like this:

1>c:\opencv\build\include\opencv2\core\core.hpp(1294): error C2059: syntax error : 'constant' 1>c:\opencv\build\include\opencv2\core\core.hpp(1294): error C3805: 'constant': unexpected token, expected either '}' or a ',' 1>c:\opencv\build\include\opencv2\core\core.hpp(4034): error C2059: syntax error : 'constant' 1>c:\opencv\build\include\opencv2\core\core.hpp(4048): error C2143: syntax error : missing ';' before '}' 1>c:\opencv\build\include\opencv2\core\core.hpp(4048): error C2238: unexpected token(s) preceding ';' 1>c:\opencv\build\include\opencv2\core\core.hpp(4050): error C2059: syntax error : ')' 1>c:\opencv\build\include\opencv2\core\core.hpp(4052): error C2226: syntax error : unexpected type 'CvFileStorage' 1>c:\opencv\build\include\opencv2\core\core.hpp(4054): error C2226: syntax error : unexpected type 'cv::FileNode'

Can you help me with this problem ? Thank you in advance!

edit retag flag offensive close merge delete

Comments

Hi, can you tell me how you solved it, I have the same problem

lcloud gravatar imagelcloud ( 2018-11-13 23:18:43 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-07-12 05:29:30 -0500

AlexanderShishkov gravatar image

updated 2012-07-17 18:16:42 -0500

Do you include this file as <opencv2/core/core.hpp>?

edit flag offensive delete link more
0

answered 2012-07-12 03:41:52 -0500

the_shadow gravatar image

I get the error messages when I include core.hpp into my code. Unfortunatly I can't post my code sorry. But the messages are from the file core.hpp itself.

edit flag offensive delete link more

Comments

Can you make a "Hello World" program with OpenCV under your environment?

Niu ZhiHeng gravatar imageNiu ZhiHeng ( 2012-07-12 04:21:05 -0500 )edit

I fix my problem but now I'm searching for file called "cvcompat.h" :-D :-D

the_shadow gravatar imagethe_shadow ( 2012-07-12 04:53:37 -0500 )edit

hi Hi, can you tell me how you solved it, I have the same problem Thank you

lcloud gravatar imagelcloud ( 2018-11-14 00:14:19 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2012-07-12 02:38:36 -0500

Seen: 1,197 times

Last updated: Jul 17 '12