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

error: implicit declaration of function 'CancelIoEx'; did you mean 'CancelIo' #228

Closed
da-liii opened this issue Aug 30, 2023 · 2 comments
Closed

Comments

@da-liii
Copy link
Contributor

da-liii commented Aug 30, 2023

注:提问题时若使用不能用/没效果/有问题/报错此类模糊表达,但又没有根据下面的模板给出任何相关辅助信息的,将绝对不会有任何反馈。

描述问题

可能是因为include相关头文件,在使用了tbox的库里面,xmake config出错
https://learn.microsoft.com/en-us/windows/win32/fileio/cancelioex-func

期待的结果

xmake config 正常工作。

错误信息

error: @programdir\modules\private\async\runjobs.lua:256: @programdir\modules\private\action\build\object.lua:91: @programdir\modules\core\tools\gcc.lua:805: In file included from src\tbox\platform\fwatcher.c:37:
src\tbox\platform\windows/fwatcher_iocp.c: In function 'tb_fwatcher_item_free':
src\tbox\platform\windows/fwatcher_iocp.c:81:9: error: implicit declaration of function 'CancelIoEx'; did you mean 'CancelIo'? [-Werror=implicit-function-declaration]
         CancelIoEx(watchitem->handle, &watchitem->overlapped);
         ^~~~~~~~~~
         CancelIo

相关环境

  • Windows 11, 使用 xrepo提供的mingw
  • tbox 1.7.4

其他信息

https://github.com/XmacsLabs/mogan/actions/runs/6026650959/job/16350082725?pr=977

@da-liii
Copy link
Contributor Author

da-liii commented Aug 30, 2023

tbox dev是没问题的

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


tbox dev is ok

@waruqi waruqi closed this as completed Aug 31, 2023
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

3 participants