[CMake] Building Qt app

kafou nmento ngondorolf at yahoo.fr
Fri Dec 26 04:31:00 EST 2008


Thank you Clint.
I fixed it another way.
In the qatomic_windows.h file from src\corelib\arch, I enclosed the paragraphs  
 
extern "C" {
long __cdecl _InterlockedIncrement(volatile long *);
long __cdecl _InterlockedDecrement(volatile long *);
long __cdecl _InterlockedExchange(volatile long *, long);
long __cdecl _InterlockedCompareExchange(volatile long *, long, long);
long __cdecl _InterlockedExchangeAdd(volatile long *, long);
}
 
and
 
extern "C" {
long __cdecl InterlockedIncrement(long Q_ARGUMENT_TYPE * lpAddend);
long __cdecl InterlockedDecrement(long Q_ARGUMENT_TYPE * lpAddend);
long __cdecl InterlockedExchange(long Q_ARGUMENT_TYPE * Target, long Value);
long __cdecl InterlockedCompareExchange(long Q_ARGUMENT_TYPE * Destination, long Exchange, long Comperand);
long __cdecl InterlockedExchangeAdd(long Q_ARGUMENT_TYPE * Addend, long Value);
}
 
 
#ifndef __INTERLOCKED_DECLARED
#define __INTERLOCKED_DECLARED
/* paragraph */
#endif
 
Thanks again,
 
Evin.


--- En date de : Mer 24.12.08, clinton at elemtech.com <clinton at elemtech.com> a écrit :

De: clinton at elemtech.com <clinton at elemtech.com>
Objet: Re: [CMake] Building Qt app
À: ngondorolf at yahoo.fr
Cc: cmake at cmake.org
Date: Mercredi 24 Décembre 2008, 17h23

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 at yahoo.fr>
To: cmake at 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 at cmake.org
http://www.cmake.org/mailman/listinfo/cmake



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081226/da9b31b1/attachment.htm>


More information about the CMake mailing list