Forum Stats

  • 3,837,777 Users
  • 2,262,299 Discussions
  • 7,900,392 Comments

Discussions

Eclipse CDT can't compile source the berkeley db.

611498
611498 Member Posts: 1
edited Oct 19, 2008 3:37AM in Berkeley DB
Hello All
I have question about compile code example berkeley db version 4.7.25 with gcc mingw32 version 3.4.5.I using Windows XP Operation system.I copy error code on eclipse console.Please see below,I configured include path by

-E -I"C:\Program Files\Oracle\Berkeley DB 4.7.25\include" -I"C:\MinGW\include\c++\3.4.5" -O3 -g -Wall -c -fmessage-length=0

I compile example source in package install,but it's can't show output.
Thank you for suggestion.
Best Regard
Chatsiri Ranata
Programmer,Thailand

**** Rebuild of configuration Release for project test ****

**** Internal Builder is used for build ****
g++ -O3 -Wall -c -fmessage-length=0 -osrc\test.o ..\src\test.cpp
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/db_cxx.h:65,
from ..\src\test.h:11,
from ..\src\test.cpp:8:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/db.h:131: error: conflicting declaration 'typedef int32_t ssize_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104: error: 'ssize_t' has a previous declaration as `typedef ssizet ssize_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/db.h:131: error: declaration of `typedef int32_t ssize_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104: error: conflicts with previous declaration `typedef ssizet ssize_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/db.h:131: error: declaration of `typedef int32_t ssize_t'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/types.h:104: error: conflicts with previous declaration `typedef ssizet ssize_t'
Build error occurred, build is stopped
Time consumed: 832 ms.

Edited by: Chatsiri Ratana on Oct 19, 2008 2:36 PM
Tagged:
This discussion has been closed.