-
Notifications
You must be signed in to change notification settings - Fork 135
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
syntax error: 'constant' compilation failure with MSVC 2015 #63
Comments
x-ref https://github.com/JuliaLang/utf8proc/pull/55/files#r70891071 which is preventing me from easily testing this in combination with julia at the moment (fixed by #79) |
There's a chance this may have gone away, but now I'm getting a whole bunch of
|
Looking at the corresponding source lines warnings look innocuous—the conversions from int32 to int8 are guarded by explicit checks on the value of the integer being converted, for example—though of course it would be good to get rid of them. |
Closing this as the original error seems to be gone. The remaining warnings are #86. |
I think this was fixed by 59334e4. If whatever Julia file had included stdbool.h before utf8proc.h, then it might have conflicts. If anyone ever tries to build Julia with MSVC pre-2013 they may have some issues, but LLVM's requirements would probably be a more serious blocker to that. |
utf8proc itself should be okay with MSVC pre-2013 now, I think; that's what the |
But possibly not if something else were to have defined true/false before including utf8proc.h, maybe? Not sure it's enough of a problem to worry about. |
I doubt it's something we should worry about; they can always define (They would get an error if they define |
Leaving this as a to-do, mostly for myself. AppVeyor here looks like it's running the newest MSVC it can find, but I think this failure only happens when some other header gets included before
utf8proc.h
.ref https://ci.appveyor.com/project/tkelman/julia/build/1.0.688
This happens when I compile Julia as C, but not when I compile as C++. MSVC 2015 is the first version with enough C99 support to make this easily possible. Probably need to change some of the ifdefs to be version-specific to avoid a collision with C99 true/false.
The text was updated successfully, but these errors were encountered: