<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OpenCV2.0 und dev C++]]></title><description><![CDATA[<p>hallo leute, ich versuche gerade mich in opencv2.0 und dev c++ einzuarbeiten und schon beim ersten programm klappts nicht so richtig.<br />
ich weiß nicht wo das problem genau liegt, aber ich nehme an das problem hat was mit der konfiguration von opencv2.0 und dev c++ zu tun: erstens gibt es keine so richtige dokumentation davon und zweitens stehts auch nirgendwo.<br />
ich hoffe einer von euch kann mir dabei helfen:<br />
also ich das programm(das bild bmw.bmp ist im selbem verzeichnis):</p>
<p>#include &quot;highgui.h&quot;</p>
<p>int main( int argc, char** argv )</p>
<p>{<br />
IplImage* img = cvLoadImage( argv[1] );<br />
img=cvLoadImage(&quot;bmw.BMP&quot;);<br />
cvNamedWindow( &quot;bmw.BMP&quot;, CV_WINDOW_AUTOSIZE );<br />
cvShowImage( &quot;bmw.BMP&quot;, img );<br />
cvWaitKey(0);<br />
cvReleaseImage( &amp;img );<br />
cvDestroyWindow( &quot;bmw.BMP&quot; );<br />
}</p>
<p>kompiliere, bekomme ich diese fehlermeldung und habe keine ahnung wo das problem liegt:Compiler: OpenCV<br />
Executing g++.exe...<br />
g++.exe &quot;C:\OpenCV\opentest1.cpp&quot; -o &quot;C:\OpenCV\opentest1.exe&quot; -L&quot;C:\OpenCV\lib&quot; -lcxcore200. -lcv200. -lcvaux200. -lhighgui200. -lml200. -lcxts200. -I&quot;C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include&quot; -I&quot;C:\Dev-Cpp\include\c++\3.4.2\backward&quot; -I&quot;C:\Dev-Cpp\include\c++\3.4.2\mingw32&quot; -I&quot;C:\Dev-Cpp\include\c++\3.4.2&quot; -I&quot;C:\Dev-Cpp\include&quot; -I&quot;C:\OpenCV\include\opencv&quot; -I&quot;C:\OpenCV\src\cv&quot; -I&quot;C:\OpenCV\src\cvaux&quot; -I&quot;C:\OpenCV\src\cxcore&quot; -I&quot;C:\OpenCV\src\highgui&quot; -I&quot;C:\OpenCV\ml&quot; -L&quot;C:\Dev-Cpp\lib&quot; -L&quot;C:\OpenCV\lib&quot;<br />
In file included from C:/OpenCV/include/opencv/cxcore.hpp:2243,<br />
from C:/OpenCV/include/opencv/cxcore.h:2123, from C:/OpenCV/include/opencv/highgui.h:47,<br />
from C:\OpenCV\opentest1.cpp:3:C:/OpenCV/include/opencv/cxoperations.hpp: In member function <code>void cv::Ptr&lt;_Tp&gt;::addref()': C:/OpenCV/include/opencv/cxoperations.hpp:1442: error: there are no arguments to</code>__exchange_and_add' that depend on a template parameter, so a declaration of <code>\_\_exchange\_and\_add' must be available C:/OpenCV/include/opencv/cxoperations.hpp:1442: error: (if you use</code>-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)<br />
C:/OpenCV/include/opencv/cxoperations.hpp: In member function <code>void cv::Ptr&lt;_Tp&gt;::release()': C:/OpenCV/include/opencv/cxoperations.hpp:1446: error: there are no arguments to</code>__exchange_and_add' that depend on a template parameter, so a declaration of <code>\_\_exchange\_and\_add' must be available C:/OpenCV/include/opencv/cxoperations.hpp: In member function</code>cv::Ptr&lt;_Tp&gt;&amp; cv::Ptr&lt;_Tp&gt;::operator=(const cv::Ptr&lt;_Tp&gt;&amp;)':<br />
C:/OpenCV/include/opencv/cxoperations.hpp:1473: error: there are no arguments to <code>\_\_exchange\_and\_add' that depend on a template parameter, so a declaration of</code>__exchange_and_add' must be availableIn file included from C:/OpenCV/include/opencv/cxcore.hpp:2244,<br />
from C:/OpenCV/include/opencv/cxcore.h:2123, from C:/OpenCV/include/opencv/highgui.h:47,<br />
from C:\OpenCV\opentest1.cpp:3:C:/OpenCV/include/opencv/cxmat.hpp: In copy constructor <code>cv::Mat::Mat(const cv::Mat&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:102: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp:102: error: (Each undeclared identifier is reported only once for each function it appears in.)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In constructor <code>cv::Mat::Mat(const cv::Mat&amp;, const cv::Range&amp;, const cv::Range&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:174: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In constructor <code>cv::Mat::Mat(const cv::Mat&amp;, const cv::Rect&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:189: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>cv::Mat&amp; cv::Mat::operator=(const cv::Mat&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:239: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::Mat::addref()': C:/OpenCV/include/opencv/cxmat.hpp:342: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::Mat::release()': C:/OpenCV/include/opencv/cxmat.hpp:346: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In copy constructor <code>cv::MatND::MatND(const cv::MatND&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:3648: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>cv::MatND&amp; cv::MatND::operator=(const cv::MatND&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:3677: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::MatND::addref()': C:/OpenCV/include/opencv/cxmat.hpp:3717: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::MatND::release()': C:/OpenCV/include/opencv/cxmat.hpp:3722: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>cv::SparseMat&amp; cv::SparseMat::operator=(const cv::SparseMat&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:4081: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::SparseMat::addref()': C:/OpenCV/include/opencv/cxmat.hpp:4112: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::SparseMat::release()': C:/OpenCV/include/opencv/cxmat.hpp:4116: error:</code>__exchange_and_add' undeclared (first use this function)Execution terminated</p>
<p>WO IST DER FEHLER ????<br />
dann würde ich gerne wissen, ob ich nicht besser mit visual c++ anstatt dev c++ arbeiten solte?<br />
vielen dank für eure antworten</p>
<p>chill out</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/252075/opencv2-0-und-dev-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 14:51:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/252075.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Oct 2009 09:54:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenCV2.0 und dev C++ on Wed, 14 Oct 2009 09:54:35 GMT]]></title><description><![CDATA[<p>hallo leute, ich versuche gerade mich in opencv2.0 und dev c++ einzuarbeiten und schon beim ersten programm klappts nicht so richtig.<br />
ich weiß nicht wo das problem genau liegt, aber ich nehme an das problem hat was mit der konfiguration von opencv2.0 und dev c++ zu tun: erstens gibt es keine so richtige dokumentation davon und zweitens stehts auch nirgendwo.<br />
ich hoffe einer von euch kann mir dabei helfen:<br />
also ich das programm(das bild bmw.bmp ist im selbem verzeichnis):</p>
<p>#include &quot;highgui.h&quot;</p>
<p>int main( int argc, char** argv )</p>
<p>{<br />
IplImage* img = cvLoadImage( argv[1] );<br />
img=cvLoadImage(&quot;bmw.BMP&quot;);<br />
cvNamedWindow( &quot;bmw.BMP&quot;, CV_WINDOW_AUTOSIZE );<br />
cvShowImage( &quot;bmw.BMP&quot;, img );<br />
cvWaitKey(0);<br />
cvReleaseImage( &amp;img );<br />
cvDestroyWindow( &quot;bmw.BMP&quot; );<br />
}</p>
<p>kompiliere, bekomme ich diese fehlermeldung und habe keine ahnung wo das problem liegt:Compiler: OpenCV<br />
Executing g++.exe...<br />
g++.exe &quot;C:\OpenCV\opentest1.cpp&quot; -o &quot;C:\OpenCV\opentest1.exe&quot; -L&quot;C:\OpenCV\lib&quot; -lcxcore200. -lcv200. -lcvaux200. -lhighgui200. -lml200. -lcxts200. -I&quot;C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include&quot; -I&quot;C:\Dev-Cpp\include\c++\3.4.2\backward&quot; -I&quot;C:\Dev-Cpp\include\c++\3.4.2\mingw32&quot; -I&quot;C:\Dev-Cpp\include\c++\3.4.2&quot; -I&quot;C:\Dev-Cpp\include&quot; -I&quot;C:\OpenCV\include\opencv&quot; -I&quot;C:\OpenCV\src\cv&quot; -I&quot;C:\OpenCV\src\cvaux&quot; -I&quot;C:\OpenCV\src\cxcore&quot; -I&quot;C:\OpenCV\src\highgui&quot; -I&quot;C:\OpenCV\ml&quot; -L&quot;C:\Dev-Cpp\lib&quot; -L&quot;C:\OpenCV\lib&quot;<br />
In file included from C:/OpenCV/include/opencv/cxcore.hpp:2243,<br />
from C:/OpenCV/include/opencv/cxcore.h:2123, from C:/OpenCV/include/opencv/highgui.h:47,<br />
from C:\OpenCV\opentest1.cpp:3:C:/OpenCV/include/opencv/cxoperations.hpp: In member function <code>void cv::Ptr&lt;_Tp&gt;::addref()': C:/OpenCV/include/opencv/cxoperations.hpp:1442: error: there are no arguments to</code>__exchange_and_add' that depend on a template parameter, so a declaration of <code>\_\_exchange\_and\_add' must be available C:/OpenCV/include/opencv/cxoperations.hpp:1442: error: (if you use</code>-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)<br />
C:/OpenCV/include/opencv/cxoperations.hpp: In member function <code>void cv::Ptr&lt;_Tp&gt;::release()': C:/OpenCV/include/opencv/cxoperations.hpp:1446: error: there are no arguments to</code>__exchange_and_add' that depend on a template parameter, so a declaration of <code>\_\_exchange\_and\_add' must be available C:/OpenCV/include/opencv/cxoperations.hpp: In member function</code>cv::Ptr&lt;_Tp&gt;&amp; cv::Ptr&lt;_Tp&gt;::operator=(const cv::Ptr&lt;_Tp&gt;&amp;)':<br />
C:/OpenCV/include/opencv/cxoperations.hpp:1473: error: there are no arguments to <code>\_\_exchange\_and\_add' that depend on a template parameter, so a declaration of</code>__exchange_and_add' must be availableIn file included from C:/OpenCV/include/opencv/cxcore.hpp:2244,<br />
from C:/OpenCV/include/opencv/cxcore.h:2123, from C:/OpenCV/include/opencv/highgui.h:47,<br />
from C:\OpenCV\opentest1.cpp:3:C:/OpenCV/include/opencv/cxmat.hpp: In copy constructor <code>cv::Mat::Mat(const cv::Mat&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:102: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp:102: error: (Each undeclared identifier is reported only once for each function it appears in.)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In constructor <code>cv::Mat::Mat(const cv::Mat&amp;, const cv::Range&amp;, const cv::Range&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:174: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In constructor <code>cv::Mat::Mat(const cv::Mat&amp;, const cv::Rect&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:189: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>cv::Mat&amp; cv::Mat::operator=(const cv::Mat&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:239: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::Mat::addref()': C:/OpenCV/include/opencv/cxmat.hpp:342: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::Mat::release()': C:/OpenCV/include/opencv/cxmat.hpp:346: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In copy constructor <code>cv::MatND::MatND(const cv::MatND&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:3648: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>cv::MatND&amp; cv::MatND::operator=(const cv::MatND&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:3677: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::MatND::addref()': C:/OpenCV/include/opencv/cxmat.hpp:3717: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::MatND::release()': C:/OpenCV/include/opencv/cxmat.hpp:3722: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>cv::SparseMat&amp; cv::SparseMat::operator=(const cv::SparseMat&amp;)': C:/OpenCV/include/opencv/cxmat.hpp:4081: error:</code>__exchange_and_add' undeclared (first use this function)C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::SparseMat::addref()': C:/OpenCV/include/opencv/cxmat.hpp:4112: error:</code>__exchange_and_add' undeclared (first use this function)<br />
C:/OpenCV/include/opencv/cxmat.hpp: In member function <code>void cv::SparseMat::release()': C:/OpenCV/include/opencv/cxmat.hpp:4116: error:</code>__exchange_and_add' undeclared (first use this function)Execution terminated</p>
<p>WO IST DER FEHLER ????<br />
dann würde ich gerne wissen, ob ich nicht besser mit visual c++ anstatt dev c++ arbeiten solte?<br />
vielen dank für eure antworten</p>
<p>chill out</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1792426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1792426</guid><dc:creator><![CDATA[checker2709]]></dc:creator><pubDate>Wed, 14 Oct 2009 09:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to OpenCV2.0 und dev C++ on Wed, 14 Oct 2009 10:02:10 GMT]]></title><description><![CDATA[<p>Schau dir mal in der FAQ zum Compiler- und IDE Forum den Thread zum Dev-C++ durch - der ist ziemlich veraltet. In diesem Fall ist entweder der opencv-code nicht standardkonform oder der gcc, der im dev+c++ mitgekommen ist ist zu alt um ihn richtig zu verstehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1792429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1792429</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 14 Oct 2009 10:02:10 GMT</pubDate></item><item><title><![CDATA[Reply to OpenCV2.0 und dev C++ on Wed, 23 Dec 2009 15:24:45 GMT]]></title><description><![CDATA[<p>Hallo<br />
Schau mal auf:<br />
<a href="http://opencv.willowgarage.com/wiki/InstallGuide" rel="nofollow">http://opencv.willowgarage.com/wiki/InstallGuide</a></p>
<p>Building on Windows using MinGW 3.4.5</p>
<p>If you get compile errors to do with __exchange_and_add it is due to the wrong definition of CV_XADD. It can be fixed by:<br />
1. Open cxoperations.hpp (found in &lt;Open CV base dir&gt;\include\opencv)<br />
2. Find this section (lines 67-68 in 2.0):</p>
<p>#else<br />
#include &lt;bits/atomicity.h&gt;<br />
#if __GNUC__ &gt;= 4</p>
<p>3. And update it to reference a new definition, __MINGW32__ (defined by the MinGW compiler, see <a href="http://predef.sourceforge.net/precomp.html#sec31" rel="nofollow">http://predef.sourceforge.net/precomp.html#sec31</a>):</p>
<p>#else<br />
#include &lt;bits/atomicity.h&gt;<br />
#if __GNUC__ &gt;= 4 || __MINGW32__</p>
<p>Hoffe das löst dein Problem<br />
Grüße<br />
Michael</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826832</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826832</guid><dc:creator><![CDATA[Michael567893]]></dc:creator><pubDate>Wed, 23 Dec 2009 15:24:45 GMT</pubDate></item><item><title><![CDATA[Reply to OpenCV2.0 und dev C++ on Wed, 23 Dec 2009 15:31:24 GMT]]></title><description><![CDATA[<p>Nimm Visual C++ 2008 Express SP1 :xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826835</guid><dc:creator><![CDATA[DarkShadow44]]></dc:creator><pubDate>Wed, 23 Dec 2009 15:31:24 GMT</pubDate></item><item><title><![CDATA[Reply to OpenCV2.0 und dev C++ on Wed, 23 Dec 2009 16:08:39 GMT]]></title><description><![CDATA[<p>DarkShadow44 schrieb:</p>
<blockquote>
<p>Nimm Visual C++ 2008 Express SP1 :xmas1:</p>
</blockquote>
<p>Die Beta 2 der kommenden 2010er Edition ist auch ziemlich stabil.<br />
Das bessere IntelliSense macht wirklich einiges aus (den Rest hab ich nicht bemerkt^^)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826857</guid><dc:creator><![CDATA[n0stradamus]]></dc:creator><pubDate>Wed, 23 Dec 2009 16:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to OpenCV2.0 und dev C++ on Wed, 23 Dec 2009 17:29:59 GMT]]></title><description><![CDATA[<p>bevor hier jetzt in 2 monate alten Threads irgendwas geschrieben wird was den OP vermutlich eh nicht mehr interessiert mach ich mal zu...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826921</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 23 Dec 2009 17:29:59 GMT</pubDate></item></channel></rss>