Marvin, i just publish the last version of my files on git: can you please check them, and say me if the declaration/definition are ok ? I m not familiar with this cross langage compilation context/
https://github.com/code34/armago_x64/tree/32bits Le mercredi 26 juin 2019 20:10:55 UTC+2, Marvin Renich a écrit : > > * nicolas_boiteux via golang-nuts <golan...@googlegroups.com <javascript:>> > [190626 13:19]: > > /* > > #include <stdlib.h> > > #include <stdio.h> > > #include <string.h> > > extern void __stdcall RVExtension(char *output, int outputSize, const > char > > *function); > > */ > > > > //export RVExtensionVersion > > func RVExtensionVersion(output *C.char, outputsize C.size_t) { > > result := C.CString("Version 1.0") > > defer C.free(unsafe.Pointer(result)) > > var size = C.strlen(result) + 1 > > if size > outputsize { > > size = outputsize > > } > > C.memmove(unsafe.Pointer(output), unsafe.Pointer(result), size) > > } > > > > > > with this code ? it compiled but the entry point is not visible via > dumpbin > > Does the declaration of RVExtension in the .c file match the cgo > declaration above (i.e. with extern and __stdcall)? > > ...Marvin > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c7c2d31e-785e-4337-a8a2-bd28338594f0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.