Groups | Search | Server Info | Login | Register


Groups > comp.databases.berkeley-db > #6

Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db)

From "Skybuck Flying" <Windows7IsOK@DreamPC2006.com>
Newsgroups comp.databases.berkeley-db, comp.lang.c
References <3e9fb$4ed19745$5419acc3$27249@cache1.tilbu1.nb.home.nl> <4e191$4ed19a95$5419acc3$29649@cache1.tilbu1.nb.home.nl>
Subject Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db)
Date 2011-11-27 04:01 +0100
Message-ID <6f6dd$4ed1a7fa$5419acc3$32518@cache1.tilbu1.nb.home.nl> (permalink)
Organization @home

Cross-posted to 2 groups.

Show all headers | View raw


I tried to fix it as follows:

#ifndef _SSIZE_T_
#define _SSIZE_T_
//typedef long _ssize_t; // original
typedef int _ssize_t; // test by Skybuck.


#ifndef _NO_OLDNAMES
typedef _ssize_t ssize_t;
#endif
#endif /* Not _SSIZE_T_ */

The build process then goes as follows, and produces some errors, I am not 
sure if it’s because of a type issue or If the code needs further fixing:

“
Running build steps for project skycoin-qt...
Configuration unchanged, skipping qmake step.
Starting: "C:\Tools\QtSDK\mingw\bin\mingw32-make.exe"
C:/Tools/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `X:/CPP/Applications/SkyCoin/version 
0.02 complete try the qt creator with the pro 
file/skycoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug'
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_da.ts
Updating '..\src\src\qt\locale\bitcoin_da.qm'...
Generated 342 translation(s) (342 finished and 0 unfinished)
Ignored 84 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_de.ts
Updating '..\src\src\qt\locale\bitcoin_de.qm'...
Generated 343 translation(s) (343 finished and 0 unfinished)
Ignored 83 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_en.ts
Updating '..\src\src\qt\locale\bitcoin_en.qm'...
Generated 7 translation(s) (0 finished and 7 unfinished)
Ignored 419 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_es.ts
Updating '..\src\src\qt\locale\bitcoin_es.qm'...
Generated 423 translation(s) (423 finished and 0 unfinished)
Ignored 3 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_es_CL.ts
Updating '..\src\src\qt\locale\bitcoin_es_CL.qm'...
Generated 423 translation(s) (423 finished and 0 unfinished)
Ignored 3 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_nb.ts
Updating '..\src\src\qt\locale\bitcoin_nb.qm'...
Generated 423 translation(s) (423 finished and 0 unfinished)
Ignored 3 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_nl.ts
Updating '..\src\src\qt\locale\bitcoin_nl.qm'...
Generated 423 translation(s) (423 finished and 0 unfinished)
Ignored 3 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_ru.ts
Updating '..\src\src\qt\locale\bitcoin_ru.qm'...
Generated 376 translation(s) (376 finished and 0 unfinished)
Ignored 50 untranslated source text(s)
c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\lrelease.exe 
..\src\src\qt\locale\bitcoin_zh_TW.ts
Updating '..\src\src\qt\locale\bitcoin_zh_TW.qm'...
Generated 423 translation(s) (423 finished and 0 unfinished)
Ignored 3 untranslated source text(s)
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\bitcoin.o ..\src\src\qt\bitcoin.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\bitcoingui.o ..\src\src\qt\bitcoingui.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\transactiontablemodel.o ..\src\src\qt\transactiontablemodel.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\addresstablemodel.o ..\src\src\qt\addresstablemodel.cpp
C:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT 
 -DQT_GUI -DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -D__GNUC__ -DWIN32 ..\src\src\qt\optionsdialog.cpp -o 
build\optionsdialog.moc
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\optionsdialog.o ..\src\src\qt\optionsdialog.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\sendcoinsdialog.o ..\src\src\qt\sendcoinsdialog.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\addressbookpage.o ..\src\src\qt\addressbookpage.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\aboutdialog.o ..\src\src\qt\aboutdialog.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\editaddressdialog.o ..\src\src\qt\editaddressdialog.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\bitcoinaddressvalidator.o 
..\src\src\qt\bitcoinaddressvalidator.cpp
g++ -c -g -frtti -fexceptions -mthreads -fdiagnostics-show-option -Wall -Wno-strict-aliasing 
 -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare 
 -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses 
 -Wno-unknown-pragmas -Wno-switch -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI  
-DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DWIN32 -DQT_DLL -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT  
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtCore" 
 -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\QtGui" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include" 
 -I"..\src\src" -I"..\src\src\json" -I"..\src\src\qt" -I"..\..\..\..\Libraries\Boost\version 
1.48.0" -I"..\..\..\..\Libraries\Berkeley DB\version 
4.8.30.NC\build_windows" -I"..\..\..\..\Libraries\OpenSSL\version 
1.0.0e\include" -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\include\ActiveQt" -I"build" 
 -I"build" -I"." -I"c:\Tools\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++" 
 -o build\util.o ..\src\src\util.cpp
In file included from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/numeric/conversion/numeric_cast_traits.hpp:28,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/numeric/conversion/cast.hpp:34,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/lexical_cast.hpp:40,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/value_semantic.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/options_description.hpp:13,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/detail/cmdline.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/parsers.hpp:12,
from ..\src\src\util.cpp:8:
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/numeric/conversion/detail/numeric_cast_traits.hpp:10:84: error: 
boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp: No 
such file or directory
In file included from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/vector/vector10.hpp:27,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/vector/vector20.hpp:18,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/mpl/vector.hpp:36,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/policies/policy.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/special_functions/math_fwd.hpp:28,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/special_functions/sign.hpp:17,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/lexical_cast.hpp:44,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/value_semantic.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/options_description.hpp:13,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/detail/cmdline.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/parsers.hpp:12,
from ..\src\src\util.cpp:8:
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/vector/aux_/include_preprocessed.hpp:49:84: error: 
boost/mpl/vector/aux_/preprocessed/typeof_based/vector10.hpp: No such file 
or directory
In file included from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/vector/vector20.hpp:27,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/mpl/vector.hpp:36,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/policies/policy.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/special_functions/math_fwd.hpp:28,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/special_functions/sign.hpp:17,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/lexical_cast.hpp:44,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/value_semantic.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/options_description.hpp:13,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/detail/cmdline.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/parsers.hpp:12,
from ..\src\src\util.cpp:8:
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/vector/aux_/include_preprocessed.hpp:49:84: error: 
boost/mpl/vector/aux_/preprocessed/typeof_based/vector20.hpp: No such file 
or directory
In file included from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/include_preprocessed.hpp:37,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/mpl/vector.hpp:46,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/policies/policy.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/special_functions/math_fwd.hpp:28,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/math/special_functions/sign.hpp:17,
from ..\..\..\..\Libraries\Boost\version 1.48.0/boost/lexical_cast.hpp:44,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/value_semantic.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/options_description.hpp:13,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/detail/cmdline.hpp:14,
from ..\..\..\..\Libraries\Boost\version 
1.48.0/boost/program_options/parsers.hpp:12,
from ..\src\src\util.cpp:8:
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:43: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:43: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:43: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:55: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:55: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:55: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:67: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:67: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:67: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:79: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:79: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:79: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:91: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:91: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:91: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:104: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:104: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:104: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:117: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:117: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:117: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:130: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:130: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:130: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:143: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:143: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:143: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:156: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:156: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:156: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:170: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:170: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:170: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:184: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:184: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:184: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:198: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:198: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:198: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:212: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:212: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:212: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:226: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:226: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:226: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:243: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:243: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:243: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:261: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:261: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:261: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:279: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:279: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:279: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:297: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:297: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:297: error: expected 
unqualified-id before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:314: error: expected 
template-name before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:314: error: expected '{' 
before '<' token
..\..\..\..\Libraries\Boost\version 
1.48.0/boost/mpl/aux_/preprocessed/gcc/vector.hpp:314: error: expected 
unqualified-id before '<' token
..\src\src\util.cpp:711: warning: 'dllimport' attribute ignored 
[-Wattributes]
mingw32-make[1]: Leaving directory `X:/CPP/Applications/SkyCoin/version 0.02 
complete try the qt creator with the pro 
file/skycoin-qt-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug'
mingw32-make[1]: *** [build/util.o] Error 1
mingw32-make: *** [debug] Error 2
The process "C:\Tools\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project skycoin-qt (target: Desktop)
When executing build step 'Make'
“

// The following code belongs to error vector.hpp:43:

“
template<
typename T0
>
struct vector<
T0, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na, na
, na, na, na
>
: vector1<T0> // <- it complains here at the :
{
typedef typename vector1<T0>::type type;
};
“

Who can make some sense out of this ?

I can think of a number of reasons why this build is failing:

1. Type problem ?
2. Syntax problem ? Perhaps mingw gets confused ? Perhaps the newlines cause 
it... ?
3. Support problem ? Perhaps mingw does not support the code ? Perhaps 
missing C++ features ?
4. Perhaps some other build problem ?
5. Perhaps incompatibility between visual studio build libraries and mingw ?

In the first posting it also shows files not being found, not sure if that 
has anything to do with it ?

6. Perhaps mingw has compile issues with spaces in filenames ? and somehow 
that might be causing problems ?
Others have noticed this issue as well, in other projects as well, this link 
also mentions weird behaviour/bugs, so maybe that’s the cause, maybe mingw 
needs to be fixed first ?

http://permalink.gmane.org/gmane.comp.gnu.mingw.announce/3612

https://forums.oracle.com/forums/thread.jspa?threadID=676654

(
Maybe this could help somebody some day, though it's a bit too much info for 
my taste, me no unix user, it mention data size neutrality
http://www.unix.org/whitepapers/64bit.html
^ maybe this link is useless I don't know, haven't fully read it yet ;)
)

Bye,
  Skybuck.

Back to comp.databases.berkeley-db | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-11-27 02:50 +0100
  Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-11-27 03:04 +0100
    Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-11-27 03:27 +0100
    Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-11-27 04:01 +0100
      Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db) "Skybuck Flying" <Windows7IsOK@DreamPC2006.com> - 2011-11-27 19:42 +0100
  Re: error: conflicting declaration 'typedef int32_t ssize_t' (mingw versus berkeley db) ImpalerCore <jadill33@gmail.com> - 2011-11-29 13:07 -0800

csiph-web