hi don't success to solve this subject. Here an example with the simple code shown in those slides: http://akrennmair.github.io/golang-cgo-slides/#10
This code doesn't works anymore, or perhaps there is some special command line to build it ? I thought it was possible to create a C function wich export the mangle name wich call the go code. When i put my c code in a c file in the directory, the c file is not compiled. Le dimanche 23 juin 2019 13:49:33 UTC+2, nobody nobodye a écrit : > > Hello, > > I need some assistance to export a GO dll function to a C program. > > The C program (wich i m not the author) required to call a function with > this name: _RVExtension@12 > > so, i simply declare my go function like this: > > //export _RVExtension@12 > func _RVExtension@12(output *C.char, outputsize C.size_t, input *C.char) { > Saisissez le code ici... > > but when i try to compile it, it returns an illegal character U+0040 '@' > error. > > Do you know if there is a workaround about this ? I m not familiar with C > code and i don't understand why there is @12 in the function name. > > note: for the 64 bits the entry point is simple : RVExtension and it > works perfectly well. > -- 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/9b386629-7878-4874-a0a7-c46fdc812efc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.