dbTalk Databases Forums  

VC8 and compatibility

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss VC8 and compatibility in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tortoisesvn
 
Posts: n/a

Default VC8 and compatibility - 01-17-2006 , 01:09 PM






Hi,

When compiling 4.3.29 with VC8 (even with _USE_32BIT_TIME_T set), the
resulting dll can't access db's created with dll's compiled with
previous versions of the compiler.
Is there a way (a define, a setting, *something*) which can make a dll
compiled with VC8 be compatible?

The reason I need compatibility is that TortoiseSVN is compiled with
VC8, while the official Subversion client is still compiled with VC6.
Previously, with VC7 this hasn't been a problem. But now that we're
using VC8, TortoiseSVN crashes (well, the crash happens in the bdb dll)
when accessing a repository created with other or previous clients.


Reply With Quote
  #2  
Old   
Michael Cahill
 
Posts: n/a

Default Re: VC8 and compatibility - 01-19-2006 , 12:36 AM






Hi,

Quote:
When compiling 4.3.29 with VC8 (even with _USE_32BIT_TIME_T set), the
resulting dll can't access db's created with dll's compiled with
previous versions of the compiler.
I've run some experiments here and can't reproduce this. That is, I've
created an environment in code compiled with VC6, then accessed that
environment without problems from code compiled with VS2005. This is
with a stock release of DB, compiling for x86 in a Debug build.

Can you explain in more detail the problems you are having? An error
message or stack trace would be helpful in understanding what is going
wrong.

Regards,
Michael.



Reply With Quote
  #3  
Old   
Michael Cahill
 
Posts: n/a

Default Re: VC8 and compatibility - 01-19-2006 , 12:38 AM



I should mention that I set _USE_32BIT_TIME_T at the top of the file
win_db.h in the build_win32 directory.

Michael.


Reply With Quote
  #4  
Old   
tortoisesvn
 
Posts: n/a

Default Re: VC8 and compatibility - 01-23-2006 , 06:44 AM



Yes, that worked. Thanks!
I've just set _USE_32BIT_TIME_T as a precompiler directive, and that
doesn't work as expected. It really only works if the define is set in
a header file.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.