go/build: using #cgo CFLAGS: -I"C:/Program Files (x86)/somelib/include" throws malformed cgo #23911
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 windows/386
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows 10 64bit
What did you do?
#cgo CFLAGS: -I"C:/Program Files (x86)/somelib/include"
#cgo LDFLAGS: -L"C:/Program Files (x86)/somelib/lib" -lsomelib
Loading headers and library files from 'Program Files (x86)' throws malformed cgo
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
A built program
What did you see instead?
malformed #cgo argument: -IC:/Program Files (x86)/somelib/include
Loading headers and library from a library installed in Program Files (x86) throws an error. I've tried enclosing the path in quotes ("") but did not work
The text was updated successfully, but these errors were encountered: