Alexis 74
Alexis 74

Reputation: 11

Export go function to C - illegal character

I need some assistance to export a GO dll function to a C program.

The C program (which 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.

Upvotes: 1

Views: 305

Answers (0)

Related Questions