简体   繁体   中英

the linker doesnt want to recognize the lib file

I want to create a queue timer . I call CreateTimerQueueTimer but it doesn't compile because it says

undefined reference to CreateTimerQueueTimer

and I showed the linker the path to the Kernel32.lib.

I use CodeBlocks, right click on project name -> Build Option -> Linker Setting tab -> then clicked Add and went to the lib path, but it didn't help. What causes this problem?

CreateTimerQueueTimer is a more recent API in Win32. To enable it you need to define _WIN32_WINNT as 0x0500 or later. Add to your preproccessor defines _WIN32_WINNT=0x0500.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM