Skip to content
This repository was archived by the owner on Jul 3, 2018. It is now read-only.
This repository was archived by the owner on Jul 3, 2018. It is now read-only.

compile error #1

Description

@kevinburke

Running make, "go vet" fails, I commented this line out, and get the following results.

gofmt -e -s -w .
cc -g -fPIC -c -o lib/lib.o lib/lib.c
cc -g -fPIC -shared -o liblib.so lib/lib.o
cc -g -fPIC -c wrapper/wrapper.c
LD_LIBRARY_PATH=. go run main.go
f0()
f1(5)
f1(8)
f2(Go string)
fmt: return f2(Go string)
f31: s1={5}, s1Ret={10}
f32: s1={10}, s1Ret={10}
s2={0xc20800014c}, *s2.p=8, i=8
f4: s2={0xc20800014c}, *s2.p=16, i=8
f1(0)
f1(1)
f1(2)
LD_LIBRARY_PATH=. go run main2.go
# command-line-arguments
ld: library not found for -llib
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/local/Cellar/go/1.3.3/libexec/pkg/tool/darwin_amd64/6l: running clang failed: unsuccessful exit status 0x100
make: *** [all] Error 2

I'm running go version go1.3.3 darwin/amd64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions