Deleted user

Results 133048 comments of Deleted user

Alright, I have a procedure. Start with these files: hello.go: ```go package main /* extern void hello(); */ import "C" func main() { C.hello() } ``` hello.c: ```c #include extern...

You need the "build tools 2017" [here](https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017). Microsoft actually now allows anyone to use visual studio for free as long as it's not for commercial development. If it's too much...

If only c++ was not a thing, I wouldn't have to worry about this. But it is, so the pain continues...

AFAIK lld https://github.com/llvm-mirror/lld supports msvc object files. Object file is here: https://github.com/xoviat/msvcgo/blob/master/hello.syso

> Go uses gcc linker (not lld) on Windows. I know. But lld is the best open source documentation of msvc object format.

I actually get same error from ld so the error is definitely coming from ld.

Forgive my ignorance, but what exactly gcc linking? Is it linking output of the go linker?

Running objconv on the object files to convert to elf: `objconv -felf hello.obj hello.syso` We now have these errors: ``` hello.syso: In function `__local_stdio_printf_options': (.text$mn+0x3): undefined reference to `?_OptionsStorage@?1??__local_stdio_printf_options@@9@9' hello.syso:...

> the Go linker calls external linker to find all bits that are implemented in C. What is the specific command used? If I know the mingw command, then perhaps...