fix compile error on mac high sierra for uint type#4
fix compile error on mac high sierra for uint type#4tgruben wants to merge 1 commit intohybridgroup:masterfrom
Conversation
when executing go build the following error was produced ./ncs.h:11:3: error: unknown type name 'uint'; did you mean 'int'?
|
Hello @tgruben thanks for the PR. Just wondering however, under what circumstances you receive this error. Several of us have high sierra installed, but do not receive that compile error. Can you please provide a little more info? Thank you. |
|
My man @milosgajdos83 asks what gcc version you have installed? Might be https://stackoverflow.com/questions/43892984/gcc-5-6-and-7-on-osx-do-not-support-uint |
|
Certainly,
$ go build ncs/stepn/vendor/github.com/hybridgroup/go-ncsIn file included from vendor/github.com/hybridgroup/go-ncs/ncs.go:5:
|
|
This is super strange @tgruben . The following code in In my case the headers are in the following directory as the And the My wild guess is the header files in your case are being read from some "non-standard" location Another thing I'm wondering is whether Maybe running |
|
I've also seen some people suggesting Given that |
|
i'll give the reinstall a try, below is the output of my current cpp -v for reference |
|
The only thing I can see in there is the lower version of Do you see If the header file does exist, can you check if |
|
yep, lovely line 92
`
92 typedef unsigned int uint; /* Sys V compatibility */
`
so odd
…On Sun, Sep 16, 2018 at 3:37 PM Milos Gajdos ***@***.***> wrote:
The only thing I can see in there is the lower version of clang than the
one on my machine but that should not matter as long as the sys/types.h
includes kicks in.
Do you see sys/types.h file in /usr/include/ directory?
If the header file does exist, can you check if typedef unsigned int uint
exists in it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA2Q48__joebPBDrQLBe9Msh39mb4kBMks5ubraRgaJpZM4WUAbe>
.
|
when executing go build the following error was produced
./ncs.h:11:3: error: unknown type name 'uint'; did you mean 'int'?