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
cmd/go: invalid flag in #cgo CFLAGS: -F #51008
Comments
-F
option with clang
Was that the complete error message? With Go 1.17 the error message should have mentioned https://golang.org/s/invalidflag, which explains how you can work around the problem. |
Yes that's all, but it don't tell me https://golang.org/s/invalidflag |
I was running |
I was trying
|
@zyxkad, do you have |
From the code it looks like |
Change https://golang.org/cl/383217 mentions this issue: |
No, I wasn't, I also try |
Yes, that's work for me, thanks |
What version of Go are you using (
go version
)?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?
package my_cgo
//#cgo CFLAGS: -F /usr/local/my_framework/lib -framework MyFramework
//#cgo LDFLAGS: -F /usr/local/my_framework/lib -framework MyFramework
//
//#include <MyFramework/somefile.h>
import "C"
What did you expect to see?
Success
What did you see instead?
go build xxx/xxx/xxx: invalid flag in #cgo CFLAGS: -F
[Finished in 458ms with exit code 1]
The option
-F
is actually inclang
The text was updated successfully, but these errors were encountered: