Golang is a moving target (unfortunately). Last time we tested was a few “major” versions ago. We‘ll test with 1.15 on Monday.
I'm interested in using LimeLM with a Golang application with both Mac and PC ports. The go tutorial is great, however I can't successfully build either platform.
For windows, I spun up a new win10 vm and installed go 1.15 and gcc 8.1.0. Errors are:
.\turboactivate.go:201:25: cannot use _Ctype_LPWSTR(getTAStrPtr(extraData)) (type _Ctype_LPWSTR) as type _Ctype_LPCWSTR in assignment
.\turboactivate.go:232:25: cannot use _Ctype_LPWSTR(getTAStrPtr(extraData)) (type _Ctype_LPWSTR) as type _Ctype_LPCWSTR in assignment
Also tried on the Mac side. MacOS Mojave. go 1.15. Different error:
./turboactivate.go:178:2: could not determine kind of name for C.free
Does this build for you?
Thanks
Golang is a moving target (unfortunately). Last time we tested was a few “major” versions ago. We‘ll test with 1.15 on Monday.
Yes, and I do appreciate the detailed build directions!
Thanks for reporting this! We've fixed it, we'll include the fixed files in TA 4.4, but you can get the fixes right now by re-running this:
go get -d -u golang.wyday.com/turboactivate
Hi. Thanks for the quick attention. It does indeed build now on windows.
The Mac port however does not build for me. The error I get is same as before, just now a different line number:
./turboactivate.go:166:3: could not determine kind of name for C.free
Does this build for you on a Mac, or is this a problem in my environment?
Thanks
You're absolutely right. A recent change to TurboActivate.h had broken the go builds on Unix as well. We've pushed the fix. Re-running the following command will get the fix immediately.
go get -d -u golang.wyday.com/turboactivate
Thank you for reporting this!