-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
UTP C++ code syntax error? (first time use) #995
Comments
Interesting, it's likely an upstream problem. What C++ compiler and set up are you using? |
didn't include compiler since seems to be a syntax error, ie any/all compilers?
maybe upstream is doing something narrow that doesn't catch this? |
For context, the wrapped library (upstream), is a clunky old half C/half C++ library that gets very little updates. However it is very heavily used and very stable. I'm happy to accept a patch here for it, GCC has probably changed something, without digging in it looks like it's complaining about the fact bool already exists (in C++) and then has a typedef. It might also come from Go, either way it's new and just a backwards compatibility problem. |
yes, i did wonder if it was some leftover/boilerplate not actually being used. i didn't find any (from a very quick scan) |
I would guess a recent enough C compiler would include a bool typedef of its own. I suspect the fix will be very simple to add an extra #if guard of some kind to utp_types.h. I took a quick look, my GCC is symlinked to clang 16 and I don't get the issue. I'm not on Linux however. |
I see GCC 15 was just released 2 weeks ago. I have GCC 14, I'll wait for 15 to be available on Homebrew. GCC 14 did not trigger the error you got for me. |
The text was updated successfully, but these errors were encountered: