Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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
I get a build error on OSX (El Capitan). Versions:
The build error: