Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: Конфликт системных заголовочников
Форум на CrossPlatform.RU > Библиотеки > Qt > Qt Общие вопросы
Litkevich Yuriy
Попытался скомпилировать qextserialport, на своей новой машинке (Aser)

И получил такие ошибки:
c:\work\tomsk\Tomsk\3rdparty\qextserialport-1.1>make
g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DUNICODE -DQT_LARGEFILE_SUPPORT -D_TTY_WIN_ -DQT_THREAD_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -I"c:\Programs\Qt4.4.3\include\QtCore" -I"c:\Progra
ms\Qt4.4.3\include\QtCore" -I"c:\Programs\Qt4.4.3\include" -I"c:\Programs\Qt4.4.3\include\ActiveQt" -I"build\moc" -I"." -I"c:\Programs\Qt4.4.3\mkspecs\default" -o build\obj\qextserialport.o qextserial
port.cpp
In file included from c:/Programs/MinGW32/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:50,
                 from win_qextserialport.h:11,
                 from qextserialport.h:12,
                 from qextserialport.cpp:21:
c:/Programs/MinGW32/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:/Programs/Qt4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:387: error: previous declaration `long int InterlockedCompareExchange(long int*, long int, long int)' here
c:/Programs/MinGW32/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1667: error: declaration of C function `LONG InterlockedDecrement(volatile LONG*)' conflicts with
c:/Programs/Qt4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:389: error: previous declaration `long int InterlockedDecrement(long int*)' here
c:/Programs/MinGW32/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1668: error: declaration of C function `LONG InterlockedExchange(volatile LONG*, LONG)' conflicts with
c:/Programs/Qt4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:390: error: previous declaration `long int InterlockedExchange(long int*, long int)' here
c:/Programs/MinGW32/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1672: error: declaration of C function `LONG InterlockedExchangeAdd(volatile LONG*, LONG)' conflicts with
c:/Programs/Qt4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:391: error: previous declaration `long int InterlockedExchangeAdd(long int*, long int)' here
c:/Programs/MinGW32/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1676: error: declaration of C function `LONG InterlockedIncrement(volatile LONG*)' conflicts with
c:/Programs/Qt4.4.3/include/QtCore/../../src/corelib/arch/qatomic_windows.h:388: error: previous declaration `long int InterlockedIncrement(long int*)' here
mingw32-make: *** [build/obj/qextserialport.o] Error 1

c:\work\tomsk\Tomsk\3rdparty\qextserialport-1.1>
И идей у меня ни каких :(


попытался собрать examples\tutorials - беззапинки

попытался собрать demos\affine - теже ошибки, что и для qextserialport

Скачал с FTP трольтеха MinGW старый, сериал порт собрался без запинки :scratch_one-s_head:
SABROG
Цитата
Qt4.4.3


В 4.5.2 в файле qatomic_windows.h вообще отсутствует строка:

long int InterlockedCompareExchange


Такая только есть:

long __cdecl InterlockedCompareExchange(long Q_ARGUMENT_TYPE * Destination, long Exchange, long Comperand);


На gcc 4.4.0 собралась вся папка demos. Affine работает.
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Форум IP.Board © 2001-2024 IPS, Inc.