-
Notifications
You must be signed in to change notification settings - Fork 22
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
LNK2038 errors when compiling under Windows 11 #43
Comments
There is a discussion of very similar errors on godotengine/godot#26046 |
Hmmm... I wonder if this is a "build type" vs. "multiconfig" issue. For the CMake steps, could you please try: $ cmake -B GDExtensionTemplate-build -G"Visual Studio 17 2022" -DCMAKE_INSTALL_PREFIX=GDExtensionTemplate-install GDExtensionTemplate
$ cmake --build GDExtensionTemplate-build --config Release |
Sure! The first CMake step leads to the following error:
|
😆 I put in that check because of this problem. Basically godot-cpp sets a bunch of options explicitly (👹) so we have no control over things and must try to match what it's doing rather than the other way around. Next attempt: cmake -B GDExtensionTemplate-build -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=GDExtensionTemplate-install GDExtensionTemplate
cmake --build GDExtensionTemplate-build |
Oh I was trying just that (adding the extra
Leads to:
|
👍 Thank you for the report and the testing. I'll update the README. |
I gave a try at compiling GDExtensionTemplate unmodified:
At that step I get errors of the form (multiple such lines, 2 per
.obj
):Concluded with:
My setup: Windows 11, CMake 3.25.2, Visual Studio Community 2022, Python 3.11.1.
I did not install Ccache since Windows support seems spotty.
The text was updated successfully, but these errors were encountered: