You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
When I compile a program like this https://play.golang.org/p/oUiZf7N8xc
there is no file name and line in the error message of the compiler. When a program is complex and consists of many files with many lines, it sometimes may take a long time to guess, where exactly is the problem.
What did you expect to see?
File name with line number where the function could not be found.
What did you see instead?
Error message with just a function name that couldn't be found. It is not clear where in the code it was found.
The text was updated successfully, but these errors were encountered:
rsc
changed the title
Go compiler doesn't show file name and line in error message when C. function is missing
cmd/cgo: file:line not shown for missing function
Jan 4, 2017
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.7.4 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/gashiman/work/go"
GORACE=""
GOROOT="/opt/go"
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build456244343=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
When I compile a program like this
https://play.golang.org/p/oUiZf7N8xc
there is no file name and line in the error message of the compiler. When a program is complex and consists of many files with many lines, it sometimes may take a long time to guess, where exactly is the problem.
What did you expect to see?
File name with line number where the function could not be found.
What did you see instead?
Error message with just a function name that couldn't be found. It is not clear where in the code it was found.
The text was updated successfully, but these errors were encountered: