[go-nuts] Re: [cgo ] Export go function to C - illegal character

2019-06-30 Thread nicolas_boiteux via golang-nuts
Hello Finaly, Isegal helps me to solve this problem. You can have a complete description on how to proceed here: https://github.com/golang/go/issues/32851 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 pr

[go-nuts] Re: [cgo ] Export go function to C - illegal character

2019-06-28 Thread nicolas_boiteux via golang-nuts
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 wi

[go-nuts] Re: [cgo ] Export go function to C - illegal character

2019-06-23 Thread nicolas_boiteux via golang-nuts
as asked by Jason, i give more information. I build a 32 bits .dll and there was no error message. When i launch the dll with the c program, the c program return a generic error message "method is not recognized" wich happens when the entry point name is wrong. So the C program expected a funct

[go-nuts] Re: [cgo ] Export go function to C - illegal character

2019-06-23 Thread nicolas_boiteux via golang-nuts
the dll is build but the entry point not works correctly :( Le dimanche 23 juin 2019 19:10:52 UTC+2, nobody nobodye a écrit : > > thanks you for your answer. I will check for this :) > > Le dimanche 23 juin 2019 18:58:22 UTC+2, Jason E. Aten a écrit : >> >> The @12 part isn't legal as part of a fu

[go-nuts] Re: [cgo ] Export go function to C - illegal character

2019-06-23 Thread nicolas_boiteux via golang-nuts
thanks you for your answer. I will check for this :) Le dimanche 23 juin 2019 18:58:22 UTC+2, Jason E. Aten a écrit : > > The @12 part isn't legal as part of a function name, as the compiler is > telling you. You must remove it. > > On Sunday, June 23, 2019 at 6:49:33 AM UTC-5, nicolas...@yahoo.f

[go-nuts] Re: [cgo ] Export go function to C - illegal character

2019-06-23 Thread Jason E. Aten
The @12 part isn't legal as part of a function name, as the compiler is telling you. You must remove it. On Sunday, June 23, 2019 at 6:49:33 AM UTC-5, nicolas...@yahoo.fr wrote: > > Hello, > > I need some assistance to export a GO dll function to a C program. > > The C program (wich i m not the a