Author Topic: Regarding using berkeley Data Base?  (Read 6578 times)

Ricky

  • Guest
Regarding using berkeley Data Base?
« on: November 21, 2007, 03:27:54 pm »
I am new bie in using Code Blocks. I have to save my project in the Berkely Database. I have installed "db-4.6.21.msi" windows version of the berkely database. Please help....how to set the path of database in my Code Blocks.

Thanks alot
Ricky

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Regarding using berkeley Data Base?
« Reply #1 on: November 21, 2007, 03:40:09 pm »
how to set the path of database in my Code Blocks.
Exactly how you would do it in any other IDE:
1.) Adjust the compiler include path's to include the header of your library.
2.) Adjust the linker include path's to enable the linker to find your library.
3.) Add the librarties to link against additionally in the right order.
4.) Develop your database code.
With regards, Morten.

BTW: Why did you make such a stupid poll??? :?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Ricky

  • Guest
Re: Regarding using berkeley Data Base?
« Reply #2 on: November 21, 2007, 03:56:31 pm »
Thanks alot for reply and i know its stupid post  :D

I tried already this way but stil it tells "db_cxx.h" no such file or directory when i try to include #include"db_cxx.h" in my code.

I tried even give complete path as #include"c:/Programfiles/oracle/Berkely/include/db_cxx.h" but this gives error of conflicting basic data types with the compiler data type?? So i thought the data base is not properly included with Code Blocks or Berkely can not work with MinGW compiler?

Thanks




« Last Edit: November 21, 2007, 05:06:44 pm by Ricky »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Regarding using berkeley Data Base?
« Reply #3 on: November 21, 2007, 04:50:41 pm »
Thanks alot for reply and i know its stupid post  :D

Morten complained about the stupid poll, not about your post. I don't know the reason, but recently we've noticed that new posters start a post with a stupid poll. Either with two options containing ?? or two options containing same texts. :shock:

If you want to experiment with polls and other such features feel free to use your personal forums, not a public forum like this.
Be a part of the solution, not a part of the problem.

Ricky

  • Guest
Re: Regarding using berkeley Data Base?
« Reply #4 on: November 21, 2007, 04:57:46 pm »
I need help for my problem and we are going some where.......... help...

For your Biplab remarks ..TOday only i started using this post and while posting there was a message to fill options before sending...so i dint have any idea what are these options so just tried in some way to put my post

Please reply for my problem...as stuck up for that...???

Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7786
    • My Best Post
Re: Regarding using berkeley Data Base?
« Reply #5 on: November 21, 2007, 05:06:44 pm »
I tried even give complete path as #include"c:/Programfiles/oracle/Berkely/include/db_cxx.h" but this gives error of conflicting basic data types with the compiler data type?? So i thought the data base is not properly locked or Berkely can not work with MinGW compiler?

You might try posting the error message, without info all we can do is say nothing.

Note, learning to use Google to solve programming issues is a good thing.

Did you try defining HAVE_CXX_STDHEADERS per Google search message below.
terms were "minGW db_cxx.h" had to use cache to see message.

Did you run configure with --enable-mingw this might or might not apply to your issue.

Tim S

From Google results

Quote
I used a fresh installation of BerkeleyDB, built from source (the one provided
for Win32 is only for MSVC). There is a small issue with this and MinGW:
the user has to manually specify -DHAVE_CXX_STDHEADERS before configuring
(plus all other CFLAGS and LDFLAG if "db" is not installed where expected),
because MinGW does not provide "exception.h" but "exception". Here is the
failed step:
« Last Edit: November 21, 2007, 05:14:43 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Ricky

  • Guest
Re: Regarding using berkeley Data Base?
« Reply #6 on: November 21, 2007, 05:17:04 pm »
"conflicting declaration 'typedef int32_t ssize_t'"                                                     in db.h in berkely database

'ssize_t' has a previous declaration as 'typedef _ssize_t ssize_t                                 in types.h  MinGW compiler file

I already tried to use google for that....