* nicolas_boiteux via golang-nuts <golang-nuts@googlegroups.com> [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/20190626181033.4atnukcbsv6vwvdy%40basil.wdw.
For more options, visit https://groups.google.com/d/optout.

Reply via email to