Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, August 2007
DirectX and Qt with MinGW


Message 1 in thread

Hi!
I wrote some code using DirectShow and Qt 4.3.1 Open Source Edition. 
After compiling using MinGW (Windows XP Pro SP2) I got a lot of errors. 
Frequently occuring of them looks like this:

c:/Program Files/PlatformSDK/Include/winbase.h:1576: error: declaration 
of C function `LONG InterlockedIncrement(volatile LONG*)' conflicts with 
d:/Qt/4.3.1/include/QtCore/../../src/corelib/arch/qatomic_windows.h:190: 
error: previous declaration `long int InterlockedIncrement(long int*)' here

Is this mean that this version of Qt is not compatible with DirectShow 
(or COM entirely)? Or any ideas how to fix?
Thanks in advance.

Anton I Alferov.

--
 [ signature omitted ] 

Message 2 in thread

Anton I Alferov wrote:
> Hi!
> I wrote some code using DirectShow and Qt 4.3.1 Open Source Edition. 
> After compiling using MinGW (Windows XP Pro SP2) I got a lot of errors. 
> Frequently occuring of them looks like this:
> 
> c:/Program Files/PlatformSDK/Include/winbase.h:1576: error: declaration 
> of C function `LONG InterlockedIncrement(volatile LONG*)' conflicts with 
> d:/Qt/4.3.1/include/QtCore/../../src/corelib/arch/qatomic_windows.h:190: 
> error: previous declaration `long int InterlockedIncrement(long int*)' here
> 

D3D has been tested (and known to work) only with Visual Studio.

Girish

--
 [ signature omitted ]