-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compilation of app for i386 arch "undefined: SQLiteConn" #483
Comments
You need to install cross-C-compiler for 386. |
Hello Mattn, I have already install GCC v7.2.0, still encountering the same error. Maybe it would help if I mention I'm using Windows 10 64-bit Thanks |
please show me your |
Im sorry i uploaded an image.. i dont know how to paste a formatted text |
try set CGO_ENABLED=1 |
github.com/mattn/go-sqlite3../../go/src/github.com/mattn/go-sqlite3/sqlite3_go18.go:18:10: undefined: SQLiteConn WIth CGO_ENABLED=1 I get:
|
As I mentioned above, you need to install 386 compiler.
2017/11/20 午前6:23 "Eliezer Croitoru" <[email protected]>:
… github.com/mattn/go-sqlite3
../../go/src/github.com/mattn/go-sqlite3/sqlite3_go18.go:18:10:
undefined: SQLiteConn
WIth CGO_ENABLED=1 I get:
runtime/cgo
In file included from /usr/include/features.h:399:0,
from /usr/include/stdlib.h:24,
from _cgo_export.c:2:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file
or directory
include <gnu/stubs-32.h>
^
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#483 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAnf0YV6_jEV2YGKo-1fy241BcMcwwZks5s4JxUgaJpZM4QhjAM>
.
|
@mattn I am using Debian\Ubutnu , can you give me a hint on what might be the right package for this? But yet to understand how to use them. |
sudo apt install gcc-mingw-w64-i686 and please point $CC to the compiler. |
compiling on windows 10 64-bit for my app to run on 386: with CGO_ENABLED=1 encountered "skipping incompatible.." errors this is using mingw-w64 compiler |
there are two compilers w64 and i686. you need to install i686 version. |
Thank you for your patience and great help @mattn upon checking my BIOS Virtualization is not enabled. Upon enabling it the compilation works perfectly. |
good to hear. 👍 |
I am on windows and build mattn/go-sqlite3 for linux
If set CGO_ENABLED=1 I have error
What happen with me? |
go-sqlite3 is cgo package. CGO_ENABLED=1 is required. |
no problem compiling the app for 64-bit arch, but when i set GOARCH=386 running go build this error is reported:
sqlite3_go18.go:18:10: undefined: SQLiteConn
The text was updated successfully, but these errors were encountered: