Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Ricky 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
-
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??? :?
-
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
-
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.
-
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
-
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
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:
-
"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....