[odb-users] Pre-compiled binary distribution of odb for Windows

CHEN Yuelin yuelin.chen at hds.leica-geosystems.com
Tue Jul 5 20:10:07 EDT 2022

Hi Boris,

Thanks for replying. You are right, some other developer actually used/modified libodb-vc12.sln to build vc14 version of binary files a while ago. I tried the same approach and was able to build with Visual Studio 2022.

I will also try to download and build ODB 2.5.0 beta. When will you release a stable version? If it's soon (in a couple of months) then I would wait for it.


-----Original Message-----
From: Boris Kolpackov <boris at codesynthesis.com> 
Sent: Tuesday, July 5, 2022 6:26 AM
To: CHEN Yuelin <yuelin.chen at hds.leica-geosystems.com>
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Pre-compiled binary distribution of odb for Windows

[You don't often get email from boris at codesynthesis.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

This email is not from Hexagon's Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email.

CHEN Yuelin <yuelin.chen at hds.leica-geosystems.com> writes:

> We are using ODB 2.4.0 on windows. We are using Visual Studio 2017 to 
> link ODB library to the application. Now we tried to switch to Visual 
> Studio 2022, and got this linker error:
> LINK : fatal error C1047: The object or library file 
> '\ODB\2.4.0\msvc2015_64\libstat\odb-2.4-vc14.lib' was created by a 
> different version of the compiler [...]
> Can you provide us library built by Visual Studio 2022, or some 
> instruction on how to build it?

Note that the above library (msvc2015_64\libstat\odb-2.4-vc14.lib)
was most likely built by you (we definitely don't ship any pre- built libraries like this).

So I think you have two options here:

1. If you want to stay on ODB 2.4.0, then you will need to re-build this
   library with VS 2022. You should be able to open the libodb-vc12.sln
   solution at which point VS should convert it to the latest version
   and you should be able to build it.

2. Alternatively, as part of this upgrade to VS 2022, you can take the
   opportunity to upgrade to the latest ODB 2.5.0 beta (which should be
   mostly backwards-compatible with 2.4.0). If you would like to go this
   route, see the following build instructions:


More information about the odb-users mailing list