D_WIN32_WINNT compiler warning with Boost

后端 未结 5 1044
一生所求
一生所求 2020-12-14 07:44

Not sure what to make of this error. Added -D_WIN32_WINNT=0x0501 to Visual Studio\'s \"Command Line\" options under Project Properties but it says it doesn\'t r

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 08:06

    For Code Blocks here is how you do it.

    Right click **Project Name** on your left >> Click 'Build Options' >> Select Debug or Release on your left >> Select 'Compiler Settings' Tab on the right >> Select #defines tab >> Then add the following line as it is:

    _WIN32_WINNT=0x0501
    
    >> Click Ok >> Close >> Right click **Project Name** again >> Re-build.
    

提交回复
热议问题