I'm new to Go-lang and I've never dealt with the errors of it before so i don't understand the message I'm getting at all. i did look up the error but nothing really helped and it was all just confusing. i assume that i missed a step when installing but i can still go run (filename) and It'd work . If anybody ever dealt with this before your help is very appreciated !
#go list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing
19 messages · Page 1 of 1 (latest)
ALSO: i couldn't find many resources on this issue either which is why i came here it was either nothing related to it or just off the rails another issue
what are you trying to build?
Nothing big just a simple hello world but i'm just getting that error under package main for some reason it's annoying
How did you install Go? what platform are you on?
Okay so, i am on Linux mint and i installed go the way it says to in the docs and then in vscode i installed the extensions for it - nothing else really happened until i wrote my simple hello world. i ran the commands listed in the docs too and they both work fine.
i can show you the output of the export path command if you'd like
@honest veldt hello ?
show the error message that you are getting and your codes too.
use playground or pastebin if its large.
also what's the exact command that you used to build it.
go list failed to return CompiledGoFiles. This may indicate failure to perform cgo processing; try building at the command line. See https://golang.org/issue/38990.
If you're talking about the little program itself , go run <name.go>
are you on windows?
.
oops srry.
try disable CGO
CGO_ENABLED=0 go run main.go
kk
i'm not sure where is the problem come from (though you can turn verbose flag and get some clue). but its likely due to old c compiler or something.
wdym like it's using some sort of other compiler i installed before it ?
yes, probably installed by default in mint.