Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error C2678 when building ALL_BUILD in Visual Studio #737

Open
volmen3 opened this issue Jun 22, 2022 · 6 comments
Open

Compile error C2678 when building ALL_BUILD in Visual Studio #737

volmen3 opened this issue Jun 22, 2022 · 6 comments

Comments

@volmen3
Copy link

volmen3 commented Jun 22, 2022

I encounter some problems when building the ALL_BUILD project in Visual Studio with following specifications:

  • Visual Studio 2022 17.2.5 (same problem on VS 2019)
  • MSVC v143 - VS 2022 C++-x64/x86-Buildtools
  • Building "RelWithDebugInfo" and x64 configuration

I get some compiler error C2678 (build_log.txt), complaining about some conversion problems.

@sherm1
Copy link
Member

sherm1 commented Jun 23, 2022

Can you say which version of Simbody source code you are using? Is this the current master branch from GitHub or an older version? If it's older the problem may have been fixed already in master.

@volmen3
Copy link
Author

volmen3 commented Jun 23, 2022

I use "Simbody release 3.7", which I've downloaded from here: https://github.com/simbody/simbody/releases

@sherm1
Copy link
Member

sherm1 commented Jun 23, 2022

Releases are frozen in time so won't necessarily work with more recent compilers. Can you try pulling the source from the master branch on github and let us know whether the problem still occurs? If its fixed there we are probably due for a new release.

@volmen3
Copy link
Author

volmen3 commented Jun 24, 2022

Indeed, that was the problem. The compilation and installation process of the master branch (using configuration described above) went well.

Regarding the release versions: The release version 3.6 has the same problem as 3.7 and using an older compiler version such as MSVC v142 doesn't solve the problem. Just wanted to point out, that it's not only the last release which is affected.

@keaidedagui
Copy link

So in the end, how do you solve this problem? I really want to know the answer.

@sherm1
Copy link
Member

sherm1 commented Jan 4, 2024

@keaidedagui -- currently the fix is to build from the master branch in GitHub rather than from one of the packaged releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants