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

Building : Add known issue for C2039 #2763

Closed
wants to merge 1 commit into from

Conversation

Mathu-lmn
Copy link
Contributor

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

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Sep 1, 2024
@FabianTerhorst
Copy link
Contributor

There should never be a workaround for building that involves editing vendor files.

@DaniGP17
Copy link

DaniGP17 commented Sep 1, 2024

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.

@Mathu-lmn
Copy link
Contributor Author

Maybe I should try opening a PR on the range repo then. But the activity looks stale for the last 6 months 😬

@Mathu-lmn
Copy link
Contributor Author

Tho I agree you should never modify a submodule

@DaniGP17
Copy link

DaniGP17 commented Sep 1, 2024

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

@Mathu-lmn
Copy link
Contributor Author

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.

@Mathu-lmn
Copy link
Contributor Author

There should never be a workaround for building that involves editing vendor files.

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) ?

@Nobelium-cfx
Copy link
Contributor

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.

@FabianTerhorst
Copy link
Contributor

Also its always worth a try to update the submodule, because we are 3,5 years behind.

@prikolium-cfx
Copy link
Contributor

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.

@Mathu-lmn
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants