Nope, not ATM. Go only works with gcc, even the dlls are made with gcc. There is a issue on that and it seems like there is some progress but it isn't clear when it will be usable. https://github.com/golang/go/issues/20982
Also note that even if Go uses msvc, you would still have issues freeing memory allocated in the dll through the exe unless maybe both of them are not static linking the runtime and are using the exact same runtime. You can see this for some info on the topic https://blogs.msdn.microsoft.com/oldnewthing/20060915-04/?p=29723 On Saturday, 26 May 2018 02:15:32 UTC+8, Liron Levy wrote: > > Well it is kinda reoated as im in this mass because of go :) > > Anyway, is there anyway to use cgo with msvc? I actually run the cgo > command from msvc cmd assuming the c part will be compiled with msvc. > > In addition as far as i know you can actually do that with visual studio > if you put the /md (multi threading) flag on. > > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.