-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Building : Add known issue for C2039 #2763
Conversation
There should never be a workaround for building that involves editing vendor files. |
I always get that error while trying to compile FiveM in Release instead of debug, so I don't know what's the good solution for this. |
Maybe I should try opening a PR on the range repo then. But the activity looks stale for the last 6 months 😬 |
Tho I agree you should never modify a submodule |
But exactly, what is the reason why this error has started to appear, I don't remember that in the past when compiling it in the release version I got this error |
I'm not 100% sure, but it comes from your compiler that does not includes the string library by default... That's why it works for some people but not everyone. |
I completely agree, but then what would your advice be ? Cloning the repo on the citizenfx org and making this change (while changing the submodule remote) ? |
I think the best way to go is to try making a PR in the vendor repository. See if they accept it. Worth trying at least. If not - cloning seems to be an option. But I don't think it worth the effort and added complexity to the project. IIUC we primarily target MSVC (correct me if Im wrong) and it should build fine there. Can we just specify which compiler to use? And if the user decides to use something else - they are on their own. |
Also its always worth a try to update the submodule, because we are 3,5 years behind. |
Issue is related to Visual Studio toolset major update (in minor version). Our team will completely move to v144 toolset soon and it will be fixed. |
Ok, surprisingly, my PR got merged in a few hours, so I think it's worth looking into updating the submodule to its latest version |
Goal of this PR
This PR adds a known issue and how to fix it when trying to build the FiveM client locally
This PR applies to the following area(s)
Building docs
Checklist