FAQ
Hi,

     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.

Search Discussions

  • Dobrosław Żybort at May 6, 2013 at 9:05 am
    Cross compiling with cgo is currently not possible
    http://code.google.com/p/go/issues/detail?id=4714
    On Monday, May 6, 2013 9:37:31 AM UTC+2, Christophe Valmir wrote:

    Hi,

    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 6, '13 at 7:37a
activeMay 6, '13 at 9:05a
posts2
users2
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase