I'm trying to build (go build) the following:
package main
import (
"fmt"
_ "github.com/d2g/unqlitego"
_ "github.com/mattn/go-sqlite3"
)
func main() {
fmt.Println("Erm Compile?")
}
and I get an error:
duplicate symbol reference: __moddi3 in both github.com/d2g/unqlitego( .text) and github.com/mattn/go-sqlite3(.text)
I'm running go version go1.3.1 windows/386.
Am I doing something wrong? How would you resolve this sort of issue?
Is this OS/Go Version/Architecture specific bug? (I'd appreciate "it works for me" with the output from your go version
)
I've put this all in a repo so you should be able to just go get github.com/d2g/issue-duplicate_symbol
.
As per comments looks like a Windows 386 issue logged on: https://code.google.com/p/go/issues/detail?id=8702
gcc
on my%PATH%
. Is it possible you havesqlite3.dll
somewhere else on your disk, that might interfere in this compilation? – Soane