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

build failing due to vector cs2440 - which buildenv? #105

Open
Mixpicles opened this issue Mar 17, 2025 · 3 comments
Open

build failing due to vector cs2440 - which buildenv? #105

Mixpicles opened this issue Mar 17, 2025 · 3 comments

Comments

@Mixpicles
Copy link

Hi, I want to have a look at the code but c++ has been a while.

The compilation fails due to some cs2440 in vector. As it is in the depth of the stl, I assume that it is a versioning problem. Can you provide some information on you build environments/ tools, lib versions?

Best Regards

@fholger
Copy link
Owner

fholger commented Mar 17, 2025

Use Visual Studio 2022 with the provided Code\CrysisMod.sln. The code uses its own older STL version, which is setup in the provided solution. If you are using any other build setup, I'm afraid you are on your own.

@Mixpicles
Copy link
Author

Mixpicles commented Mar 17, 2025

Hi, thanks for the reply. I did just that.

An update: I removed any win sdk from the vsinstaller. Now stdlib.h is missing from platform.h.
Where do you get the libs from? Do I need some SDK binaries?

@Mixpicles
Copy link
Author

I can only asume that vs community does things a bit differently or there is a version switch.
However, I had to provide a reference to afxres.h (e.g. G:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\atlmfc\include)

As for the allocation problems, it appears that simply
m_StanceWeponOffsetLeanRight[curStance];
Weapon.cpp, Line 531, will cause the problem.

I'll continue tomorrow

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

2 participants