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
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. git clone https://gist.github.com/9282874.git darwintest
2. cd darwintest
3. go run *.go
What is the expected output?
The program running, just as if I had built it with go build and ran it manually.
What do you see instead?
# command-line-arguments
Undefined symbols for architecture x86_64:
"__objc_msgSend_rect", referenced from:
__cgo_4f956653181a_Cfunc__objc_msgSend_rect in bleh_darwin.cgo2.o
(maybe you meant: __cgo_4f956653181a_Cfunc__objc_msgSend_rect, __cgo_4f956653181a_Cfunc__objc_msgSend_rect_uint_uint_bool )
"__objc_msgSend_rect_uint_uint_bool", referenced from:
__cgo_4f956653181a_Cfunc__objc_msgSend_rect_uint_uint_bool in bleh_darwin.cgo2.o
(maybe you meant: __cgo_4f956653181a_Cfunc__objc_msgSend_rect_uint_uint_bool)
"__objc_msgSend_uint", referenced from:
__cgo_4f956653181a_Cfunc__objc_msgSend_uint in bleh_darwin.cgo2.o
(maybe you meant: __cgo_4f956653181a_Cfunc__objc_msgSend_uint)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Which operating system are you using?
Mac OS X 10.8.5 running as a VirtualBox guest
Which version are you using? (run 'go version' or 'gccgo --version')
go version devel +9d51d21e0ac6 Thu Feb 27 10:48:36 2014 -0800 darwin/amd64
Please provide any additional information below.
This affects both 32-bit and 64-bit builds. I checked the output of go run -n; the .m
file is missing.
The text was updated successfully, but these errors were encountered:
Go run only builds the files passed on the command line (you have passed no *.m files),
and AFAIK never supported building C, C++, or the new Objective-C files used by CGO
packages.
Also the clone url doesn't allow you to see the gist in the browser. To do that goto
https://gist.github.com/andlabs/9282874
'go run' may start running the package in the current directory. It will never accept
*.m files on the command line, nor will it second-guess what you've listed on the
command line by adding new files.
The text was updated successfully, but these errors were encountered: