-
-
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
cgo.exe exit status:2 not building my code #168
Comments
Could you please try:
|
It seems that your installation of mingw has problem. |
thanks for the answer. problem is with my mingw or gcc. rectified it by installing neatly... |
Cool |
C:\Go\pkg\tool\windows_amd64\cgo.exe: exit status 2.It is showing this error . |
try |
xml3.go:7:2: cannot find package "xmlfunc" in any of: |
you need to get xmlfunc your self. sorry i don't know that xmlfunc is. |
xml function is existing but still it is showing error.can u please tell me some other way to resolve this error.plz rply asap. |
Sorry, probably it's not issue of go-sqlite3. |
ok ok .thanks |
C:\Users\Puck\go\src>go get -x github.com\mattn\go-sqlite3 |
hi, I have the same of ur problem |
reproducible using mingw from chocolately. Tell me about your story to fix this exit status 2. |
Recently I've also been facing the problem:
This command returns you a path to env file.
Copy the path of
This worked for me. It's also possible to use SWIG compiler to compile C/C++ code in golang apps, but I haven't tested it yet. |
c:/go/bin/go.exe build [C:/go/src]
go build github.com/mattn/go-sqlite3: c:\go\pkg\tool\windows_amd64\cgo.exe: exit status 2
Error: process exited with code 1.
The text was updated successfully, but these errors were encountered: