-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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 error: expected unqualified-id before string constant (mingw32) #98822
Comments
I don't reproduce the issue on Fedora 41 with mingw-gcc 14.2.1 20240801. You seem to have a fairly old versions of mingw (GCC 10-win32 20210110), which system are you on? Please provide more information in your issues, I can luckily extract from the error message that you're building for Windows x86_64, We might just need to up our minimum supported GCC/mingw version, or maybe find a workaround for the missing define in old mingw. CC @bruvzg |
The only recent change to this code seems to be #97934, but it's pretty strange that removing |
My bad. Here are details:
https://github.com/roalyr/godot-for-3d-open-worlds/blob/master/rebuild_windows.sh |
It's likely not GCC version, but MinGW headers version issue, |
I was building it two weeks ago and it worked. Also I am on MX Linux, its |
Will try to build it with LLVM instead.
|
I am getting this error: #97882 Build code is as follows:
Error:
|
It's probably won't help, but try: diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp
index b5cb8da249..dfded0e237 100644
--- a/drivers/wasapi/audio_driver_wasapi.cpp
+++ b/drivers/wasapi/audio_driver_wasapi.cpp
@@ -85,7 +85,7 @@ public:
_In_ const WAVEFORMATEX *pFormat,
/* [annotation][in] */
_In_opt_ LPCGUID AudioSessionGuid) = 0;
-}
+};
__CRT_UUID_DECL(IAudioClient3, 0x7ED4EE07, 0x8E67, 0x4CD4, 0x8C, 0x1A, 0x2B, 0x7A, 0x59, 0x87, 0xAD, 0x42)
#endif // __IAudioClient3_INTERFACE_DEFINED__
What's mingw-w64-common version (one with the headers, not sure if name is the same on MX Linux)? |
|
Tested versions
4.x as of 1bffd6c
System information
Issue description
Building for windows on Linux as follows:
Getting error:
Steps to reproduce
Build from source.
Minimal reproduction project (MRP)
The text was updated successfully, but these errors were encountered: