I'm on Linux Ubuntu 10.04.4 and I use on my project "mattn/go-sqlite3".
I have error of cross-compilation.
~/workspace/go/src/test$ go-windows-386 build -a -x
.....
/home/ron/go/pkg/tool/linux_amd64/8c -F -V -w -I
$WORK/github.com/mattn/go-sqlite3/_obj/ -I /home/ron/go/pkg/windows_386 -o
$WORK/github.com/mattn/go-sqlite3/_obj/sqlite3_windows.8 -D GOOS_windows -D
GOARCH_386 ./sqlite3_windows.c
# github.com/mattn/go-sqlite3
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:241 unknown #: if
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:256 unknown #: if
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:296 unknown #: if
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:335 unknown #: if
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:338 unknown #:
elif
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:339 macro
redefined: SQLITE_INT_TO_PTR
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:340 macro
redefined: SQLITE_PTR_TO_INT
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:341 unknown #:
elif
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:342 macro
redefined: SQLITE_INT_TO_PTR
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:343 macro
redefined: SQLITE_PTR_TO_INT
../../../../github.com/mattn/go-sqlite3/sqlite3_windows.c:360 unknown #: if
too many errors
How I can corrige this error ?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.