x/mobile: stdlibc++ deprecation building issue: flags set but still shows error: clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated] #29969
Milestone
Comments
Change https://golang.org/cl/164800 mentions this issue: |
@imWildCat you can use the latest version of gomobile or the -iosversion flag to set a minimum iOS version >= 7. |
Thank you, @eliasnaur ! It works perfectly! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Other version info:
Version 10.1 (10B61)
10.14.2 (18C54)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Background: I was trying to build a Go library (with C++ source) into objective-c bindings (as .framework).
What did you expect to see?
The library can be built as an iOS framework.
What did you see instead?
The build failed due to
libstdc++
is used even if I setexport CGO_CPPFLAGS="-stdlib=libc++"
.Without
export CGO_CPPFLAGS="-stdlib=libc++"
, it shows:The text was updated successfully, but these errors were encountered: