Problem with cpp example

Ask questions on using Emgu CV with C++
Post Reply
wolfen3
Posts: 1
Joined: Tue Feb 16, 2010 9:00 am

Problem with cpp example

Post by wolfen3 » Tue Feb 16, 2010 9:03 am

I want to build an cplusplus example from "Emgu\Emgu CV\Solution\VS2008\Emgu.CV.Example.sln". I have full VS 2008, here what i get. What's wrong with it ?

Code: Select all

1>------ Rebuild All started: Project: CPlusPlus, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'CPlusPlus', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>ImageProcessor.cpp
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(6) : error C2653: 'Emgu' : is not a class or namespace name
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(6) : error C2871: 'CV' : a namespace with this name does not exist
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(7) : error C2653: 'Emgu' : is not a class or namespace name
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(7) : error C2871: 'Structure' : a namespace with this name does not exist
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(13) : error C2653: 'Emgu' : is not a class or namespace name
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(13) : error C2065: 'Image' : undeclared identifier
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(13) : error C2065: 'Bgr' : undeclared identifier
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(13) : error C2059: syntax error : '>'
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(13) : error C2238: unexpected token(s) preceding ';'
1>.\ImageProcessor.cpp(6) : error C2065: 'Image' : undeclared identifier
1>.\ImageProcessor.cpp(6) : error C2065: 'Bgr' : undeclared identifier
1>.\ImageProcessor.cpp(6) : error C2059: syntax error : '>'
1>.\ImageProcessor.cpp(6) : error C2039: 'ProcessImage' : is not a member of 'CPlusPlus::ImageProcessor'
1>        c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\ImageProcessor.h(11) : see declaration of 'CPlusPlus::ImageProcessor'
1>.\ImageProcessor.cpp(7) : error C2143: syntax error : missing ';' before '{'
1>.\ImageProcessor.cpp(7) : error C2447: '{' : missing function header (old-style formal list?)
1>CPlusPlus.cpp
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\MainForm.h(25) : error C2653: 'Emgu' : is not a class or namespace name
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\MainForm.h(25) : error C2065: 'IImage' : undeclared identifier
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\MainForm.h(25) : error C2059: syntax error : '>'
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\MainForm.h(25) : error C2059: syntax error : ')'
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\MainForm.h(25) : error C2143: syntax error : missing ';' before '{'
1>c:\program files\emgu\emgu cv\emgu.cv.example\cplusplus\MainForm.h(25) : fatal error C1004: unexpected end-of-file found
1>AssemblyInfo.cpp
1>Generating Code...
1>Caching metadata information for c:\windows\assembly\gac_msil\system.core\3.5.0.0__b77a5c561934e089\system.core.dll...
1>Build log was saved at "file://c:\Program Files\Emgu\Emgu CV\Emgu.CV.Example\CPlusPlus\Debug\BuildLog.htm"
1>CPlusPlus - 21 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

canming
Site Admin
Posts: 1038
Joined: Thu Feb 28, 2008 4:16 pm

Re: Problem with cpp example

Post by canming » Sun Feb 28, 2010 2:21 pm

Which version are you using?

Both current SVN and 2.0.1.0 works for me.

amra
Posts: 1
Joined: Fri Sep 24, 2010 6:57 am

Re: Problem with cpp example

Post by amra » Fri Sep 24, 2010 6:58 am

i have the same problem, did you manage to solve it? please advise

thanks

Post Reply