Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
Thank you! I found out: Ubuntu and MSYS2 ship two different versions that have different types in header according Go rules. That's why I cannot use the same code. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Justin Israel
On Sat, Mar 25, 2017, 9:55 AM Ignazio Di Napoli wrote: > When I include stdints.h, the error is: > > cannot use C.uint32_t(bi.Time_reference_low) (type C.uint32_t) as type > C.uint in assignment > If cgo follows the same rule as the Go spec, then it won't want to do implicit conversations be

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
When I include stdints.h, the error is: cannot use C.uint32_t(bi.Time_reference_low) (type C.uint32_t) as type C.uint in assignment on line: c.time_reference_low = C.uint32_t(bi.Time_reference_low) Even if in stdint.h there is: typedef unsigned int uint32_t; and the c is of type:

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
Thank you. Now it complains it cannot convert uint32_t to uint. It's a start. It just seems strange I can compile under Windows with MinGW 64bit and not Ubuntu 64bit. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

Re: [go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Jan Mercl
On Fri, Mar 24, 2017 at 4:54 PM Ignazio Di Napoli wrote: > How can debug the problem? Assuming the error comes from[0], I would try to add to the list of C includes near the top of that file. [0]: https://github.com/mkb218/gosndfile/blob/14851e87aed3b4236528a981f805f969e08ef2f8/sndfile/comma

[go-nuts] could not determine kind of name for C.uint32_t

2017-03-24 Thread Ignazio Di Napoli
Hello everyone, I get this error while compiling gosndfile under Ubuntu. The same code compiled fine under Windows using MSYS2. I couldn't find any information on this problem, if not checking for blank lines before <>, that obviously are not there since it works under MSYS2. I also checked li