Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Demo compile error #3

Open
Gustavomurta opened this issue Nov 25, 2022 · 2 comments
Open

Example Demo compile error #3

Gustavomurta opened this issue Nov 25, 2022 · 2 comments

Comments

@Gustavomurta
Copy link

Gustavomurta commented Nov 25, 2022

Dear colleague, When I try to compile the example, I get these various messages from libraries in C language. I don't know how to fix these errors. Would you help me? Thank you very much.

go version go1.19.2 windows/amd64

C:\Users\jgust\go\programas\gods4-1.0.0\examples\demo>go build main.go

github.com/stamp/hid

In file included from ........\pkg\mod\github.com\stamp\hid@v0.0.0-20190105143849-bc55d7d13ce1\hid_enabled.go:40:

........\pkg\mod\github.com\stamp\hid@v0.0.0-20190105143849-bc55d7d13ce1/hidapi/windows/hid.c: In function 'hid_enumerate':

........\pkg\mod\github.com\stamp\hid@v0.0.0-20190105143849-bc55d7d13ce1/hidapi/windows/hid.c:431:5: warning: 'strncpy' specified bound

depends on the length of the source argument [-Wstringop-overflow=]

431 | strncpy(cur_dev->path, str, len+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
........\pkg\mod\github.com\stamp\hid@v0.0.0-20190105143849-bc55d7d13ce1/hidapi/windows/hid.c:429:11: note: length computed here
429 | len = strlen(str);
|

^~~~~~~~~~~

@kpeu3i
Copy link
Owner

kpeu3i commented Nov 26, 2022

Looks like it's just a warning. Can you confirm that the binary was not built? If so, I would suggest reporting this bug to github.com/stamp/hid

@Gustavomurta
Copy link
Author

Thanks kpeu3i!
The binary was not built. I will see stamp/hid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants