-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 on OSX #12
Comments
Ok, it was harder to find than I would have thought: http://casablanca.codeplex.com/workitem/404 Add warning-turned-error to the clang suppression list. This is only a workaround, really, so leaving this issue open. Are we supposed to report issues here or on codeplex? Things seem somewhat in limbo/flux. |
Hi there! |
Can you explain how to "Add warning-turned-error to the clang suppression list" in CMakeLists.txt file? |
The compiler on OSX is being a little too strict in this case; it's turning a warning into an error, causing the build to fail. Suppress the warning-turned-error by added it to this line in CMakeLists.txt: https://github.com/Microsoft/cpprestsdk/blob/master/Release/CMakeLists.txt#L137 Once you do that, you should be able to build. |
It is possible to add a similar suppression flag to the iOS CMakeLists.txt (Build_iOS/CMakeLists.xtx)?... |
Based on this line https://github.com/Microsoft/cpprestsdk/blob/master/Release/CMakeLists.txt#L133, I'd say that my suggestion covers both iOS and OSX builds. (edit: untested - perhaps let others know whether you were successful?) |
It works, I solved adding "-Wno-error" and "-Wno-unused-local-typedefs" into https://github.com/Microsoft/cpprestsdk/blob/master/Release/CMakeLists.txt#L137 . Thanks! |
Closing this issue since we have merged the PR#23. |
…to master * commit 'c46557e94ae62b8ad6bbf231522d1000a89b6d20': code style check if valid code_points use utf16 use define, because it is better readable use hex data, because it is better readable use conversion to wchar_t
…hrase_to_public_helper_file cpprestsdk: Enable access to get_defaut_reason_phrase
I get a build error on OSX (El Capitan). Versions:
The build error:
The text was updated successfully, but these errors were encountered: