[Paraview] Windows / building error on pqCommandServerStartup
Clinton Stimpson
clinton at elemtech.com
Fri Jan 30 10:44:03 EST 2009
This should answer your question.
http://www.qtsoftware.com/developer/task-tracker/index_html?id=228612&method=entry
You can patch the qatomic_windows.h header file.
Clint
Pierre-Olivier Dallaire wrote:
> Hi,
>
> I'm trying to build ParaView on Windows using MinGW - does anybody had
> this error in the past / not sure what to do at this point :
>
> [ 90%] Building CXX object
> Qt/Core/CMakeFiles/pqCore.dir/pqCommandServerStartup.obj
> In file included from
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:50,
> from
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winsock2.h:22,
> from C:\Documents and
> Settings\podallaire\Desktop\ParaView3\Qt\Core\pqCommandServerStartup.cxx:39:
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1663:
> error: declaration of C function `LONG InterlockedCompar
> eExchange(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 InterlockedCompareE
> xchange(long int*, long int, long int)' here
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667:
> error: declaration of C function `LONG InterlockedDecrem
> ent(volatile LONG*)' conflicts with
> C:/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:389:
> error: previous declaration `long int InterlockedDecremen
> t(long int*)' here
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668:
> error: declaration of C function `LONG InterlockedExchan
> ge(volatile LONG*, LONG)' conflicts with
> C:/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:390:
> error: previous declaration `long int InterlockedExchange
> (long int*, long int)' here
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672:
> error: declaration of C function `LONG InterlockedExchan
> geAdd(volatile LONG*, LONG)' conflicts with
> C:/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:391:
> error: previous declaration `long int InterlockedExchange
> Add(long int*, long int)' here
> C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676:
> error: declaration of C function `LONG InterlockedIncrem
> ent(volatile LONG*)' conflicts with
> C:/Qt/4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:388:
> error: previous declaration `long int InterlockedIncremen
> t(long int*)' here
> mingw32-make[2]: ***
> [Qt/Core/CMakeFiles/pqCore.dir/pqCommandServerStartup.obj] Error 1
> mingw32-make[1]: *** [Qt/Core/CMakeFiles/pqCore.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>
> The same source code compiled fine on Linux and Mac.
>
> Best regards,
>
> PO
> ------------------------------------------------------------------------
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list