https://github.com/qtproject/qt-solu...ster/qtservice

I don't know if this is a good idea but I put here entire compiler log. I meet this problem again. Last time I've seen problem with BLOB when I was trying to include <windows.h> header and couldn't handle this. Now I'm trying to compile QtService library as dll and here you are: BLOB. Couldn't find anything related with this issue. Anybody knows what is happening and how fix it?

Qt Code:
  1. C:\Users\Ja\Desktop\qt-solutions-master\qtservice>qmake
  2.  
  3. C:\Users\Ja\Desktop\qt-solutions-master\qtservice>mingw32-make
  4. cd buildlib\ && ( if not exist Makefile C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\qmake.exe C:\Users\Ja\Desktop\qt-solutions-master\qtservice\buildlib\buildlib.pro -o Makefile ) && mingw32-make -f Makefile
  5. mingw32-make[1]: Entering directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
  6. mingw32-make -f Makefile.Release all
  7. mingw32-make[2]: Entering directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
  8. C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -IC:/Users/Ja/De
  9. sktop/qt-solutions-master/qtservice/buildlib -IC:/Users/Ja/Desktop/qt-solutions-master/qtservice/src -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -IC:/Qt/Qt5.5
  10. .1/5.5/mingw492_32/include/QtANGLE -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore ..\src\qtservice.cpp -o release\qtservice.moc
  11. g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I..\src -IC:\Qt\Qt5.5.1\5.5\mingw4
  12. 92_32\include -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtGui -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtANGLE -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtCore -Irelease -IC:\Qt\Qt5.5.1\5.5\mingw492_32\mks
  13. pecs\win32-g++ -o release\qtservice.o ..\src\qtservice.cpp
  14. C:\Qt\Qt5.5.1\5.5\mingw492_32\bin\moc.exe -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.5.1/5.5/mingw492_32/mkspecs/win32-g++ -IC:/Users/Ja/De
  15. sktop/qt-solutions-master/qtservice/buildlib -IC:/Users/Ja/Desktop/qt-solutions-master/qtservice/src -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtGui -IC:/Qt/Qt5.5
  16. .1/5.5/mingw492_32/include/QtANGLE -IC:/Qt/Qt5.5.1/5.5/mingw492_32/include/QtCore ..\src\qtservice_win.cpp -o release\qtservice_win.moc
  17. g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QTSERVICE_EXPORT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I..\src -IC:\Qt\Qt5.5.1\5.5\mingw4
  18. 92_32\include -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtGui -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtANGLE -IC:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtCore -Irelease -IC:\Qt\Qt5.5.1\5.5\mingw492_32\mks
  19. pecs\win32-g++ -o release\qtservice_win.o ..\src\qtservice_win.cpp
  20. In file included from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/combaseapi.h:153:0,
  21. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/objbase.h:14,
  22. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/ole2.h:17,
  23. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypes.h:12,
  24. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/winscard.h:10,
  25. from C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/windows.h:97,
  26. from C:\Qt\Qt5.5.1\5.5\mingw492_32\include\QtCore/qt_windows.h:63,
  27. from ..\src\qtservice_win.cpp:52:
  28. [B]C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypesbase.h:386:16: error: using typedef-name 'BLOB' after 'struct'
  29. typedef struct BLOB *LPBLOB;[/B]
  30. ^
  31. [B]C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypesbase.h:385:3: note: 'BLOB' has a previous declaration here
  32. } BLOB;[/B]
  33. ^
  34. [B]C:/Qt/Qt5.5.1/Tools/mingw492_32/i686-w64-mingw32/include/wtypesbase.h:386:28: error: invalid type in declaration before ';' token
  35. typedef struct BLOB *LPBLOB;[/B]
  36. ^
  37. ..\src\qtservice_win.cpp: In constructor 'HandlerThread::HandlerThread()':
  38. ..\src\qtservice_win.cpp:705:19: warning: 'HandlerThread::console' will be initialized after [-Wreorder]
  39. bool success, console;
  40. ^
  41. ..\src\qtservice_win.cpp:698:50: warning: base 'QThread' [-Wreorder]
  42. : success(true), console(false), QThread()
  43. ^
  44. ..\src\qtservice_win.cpp:697:5: warning: when initialized here [-Wreorder]
  45. HandlerThread()
  46. ^
  47. ..\src\qtservice_win.cpp: At global scope:
  48. ..\src\qtservice_win.cpp:96:32: warning: 'pRegisterServiceProcess' defined but not used [-Wunused-variable]
  49. static PRegisterServiceProcess pRegisterServiceProcess = 0;
  50. ^
  51. Makefile.Release:504: recipe for target 'release/qtservice_win.o' failed
  52. mingw32-make[2]: *** [release/qtservice_win.o] Error 1
  53. mingw32-make[2]: Leaving directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
  54. Makefile:38: recipe for target 'release-all' failed
  55. mingw32-make[1]: *** [release-all] Error 2
  56. mingw32-make[1]: Leaving directory 'C:/Users/Ja/Desktop/qt-solutions-master/qtservice/buildlib'
  57. makefile:39: recipe for target 'sub-buildlib-make_first-ordered' failed
  58. mingw32-make: *** [sub-buildlib-make_first-ordered] Error 2
  59.  
  60. C:\Users\Ja\Desktop\qt-solutions-master\qtservice>
To copy to clipboard, switch view to plain text mode