<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Thank you Clint.</DIV>
<DIV>I fixed it another way.</DIV>
<DIV>In the qatomic_windows.h file from src\corelib\arch, I enclosed the paragraphs </DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV> </DIV>
<DIV>extern</FONT><FONT color=#000000 size=2> </FONT><FONT color=#a31515 size=2>"C"</FONT><FONT size=2><FONT color=#000000> {</FONT></DIV>
<DIV></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT size=2> _InterlockedIncrement(</FONT><FONT color=#0000ff size=2>volatile</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> *);</DIV>
<DIV></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT size=2> _InterlockedDecrement(</FONT><FONT color=#0000ff size=2>volatile</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> *);</DIV>
<DIV></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT size=2> _InterlockedExchange(</FONT><FONT color=#0000ff size=2>volatile</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> *, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2>);</DIV>
<DIV></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT size=2> _InterlockedCompareExchange(</FONT><FONT color=#0000ff size=2>volatile</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> *, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2>);</DIV>
<DIV></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT size=2> _InterlockedExchangeAdd(</FONT><FONT color=#0000ff size=2>volatile</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> *, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2>);</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV><FONT color=#000000>and</FONT></DIV>
<DIV> </DIV><FONT color=#0000ff size=2>
<DIV>extern</FONT><FONT color=#000000 size=2> </FONT><FONT color=#a31515 size=2>"C"</FONT><FONT size=2><FONT color=#000000> {</FONT></DIV></FONT><FONT color=#0000ff size=2>
<DIV>long</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT color=#000000 size=2> InterlockedIncrement(</FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2><FONT color=#000000> Q_ARGUMENT_TYPE * lpAddend);</FONT></DIV></FONT><FONT color=#0000ff size=2>
<DIV>long</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT color=#000000 size=2> InterlockedDecrement(</FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2><FONT color=#000000> Q_ARGUMENT_TYPE * lpAddend);</FONT></DIV></FONT><FONT color=#0000ff size=2>
<DIV>long</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT color=#000000 size=2> InterlockedExchange(</FONT><FONT color=#0000ff size=2>long</FONT><FONT color=#000000 size=2> Q_ARGUMENT_TYPE * Target, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2><FONT color=#000000> Value);</FONT></DIV></FONT><FONT color=#0000ff size=2>
<DIV>long</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT color=#000000 size=2> InterlockedCompareExchange(</FONT><FONT color=#0000ff size=2>long</FONT><FONT color=#000000 size=2> Q_ARGUMENT_TYPE * Destination, </FONT><FONT color=#0000ff size=2>long</FONT><FONT color=#000000 size=2> Exchange, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2><FONT color=#000000> Comperand);</FONT></DIV></FONT><FONT color=#0000ff size=2>
<DIV>long</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>__cdecl</FONT><FONT color=#000000 size=2> InterlockedExchangeAdd(</FONT><FONT color=#0000ff size=2>long</FONT><FONT color=#000000 size=2> Q_ARGUMENT_TYPE * Addend, </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2><FONT color=#000000> Value);</FONT></DIV>
<DIV>}</DIV></FONT>
<DIV></FONT></FONT> </DIV>
<DIV> </DIV><FONT color=#0000ff size=2>
<DIV>#ifndef</FONT><FONT size=2> __INTERLOCKED_DECLARED</DIV></FONT><FONT color=#0000ff size=2>
<DIV>#define</FONT><FONT size=2> __INTERLOCKED_DECLARED</FONT></DIV>
<DIV><FONT size=2>/* paragraph */</FONT><FONT size=2></DIV></FONT><FONT color=#0000ff size=2>
<DIV>#endif</DIV></FONT>
<DIV> </DIV>
<DIV>Thanks again,</DIV>
<DIV> </DIV>
<DIV>Evin.</DIV>
<DIV><BR><BR>--- En date de : <B>Mer 24.12.08, clinton@elemtech.com <I><clinton@elemtech.com></I></B> a écrit :<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: clinton@elemtech.com <clinton@elemtech.com><BR>Objet: Re: [CMake] Building Qt app<BR>À: ngondorolf@yahoo.fr<BR>Cc: cmake@cmake.org<BR>Date: Mercredi 24 Décembre 2008, 17h23<BR><BR><PRE>This should answer your questions about it. A patch is also provided.
http://trolltech.com/developer/task-tracker/index_html?id=228612&method=entry
Clint
----- Original Message -----
From: "kafou nmento" <ngondorolf@yahoo.fr>
To: cmake@cmake.org
Sent: Tuesday, December 23, 2008 10:23:26 AM GMT -07:00 US/Canada Mountain
Subject: [CMake] Building Qt app
Hi all!
I'm building a Qt based app with CMake using MinGW generator.
I set this in my CMakeLists.txt :
SET(QT_USE_QTDESIGNER 1)
SET(QT_USE_QTMAIN 1)
SET(QT_USE_QTUITOOLS 1)
SET(QT_USE_QTWEBKIT 1)
When building I errors like below :
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663:
error:
declaration of C function `LONG InterlockedCompareExchange(volatile LONG*, LONG
, LONG)' conflicts with
C:/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:387: error:
previous declaration `long int InterlockedCompareExchange(long int*, long int,
l
ong int)' here
Is there anyboy who can help me?
Thanks in advance.
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
</PRE></BLOCKQUOTE></td></tr></table><br>