aarzilli / golua

Go bindings for Lua C API - in progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golua have link error, running go 1.7.3

qingfengshuixu opened this issue · comments

win64.env
CGO_ENABLED=1

link error:
lib/../lib/libntdll.a(dudjbs01971.o):(.idata$5+0x0): multiple definition of __imp_sqrt' d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libmsvcrt.a(dglbbs01052.o):(.idata$5+0x0): first defined here d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libntdll.a(dudjbs01968.o):(.idata$5+0x0): multiple definition of __imp_sin'
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libmsvcrt.a(dglbbs01047.o):(.idata$5+0x0): first defined here
d:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib/libntdll.a(dudjbs01966.o):(.idata$5+0x0): multiple definition of `__imp_pow'
who have this question? how to solve this question?

same problem for me

x86_64-w64-mingw32/lib/../lib/libntdll.a(dgvcs01971.o):(.idata$5+0x0): multiple definition of `__imp_sqrt'
#cgo windows,!llua LDFLAGS: -L${SRCDIR} -llua -lmingwex -lmingw32

it can ok, when you put liblua.a(compiled with mingw64) under go-lua src