Menu

boost header conflicting with win 10 sdk header?

Help
2019-01-08
2019-01-08
  • David M. Cotter

    David M. Cotter - 2019-01-08

    not sure what the deal is here. any ideas?

    Z:\kJams\External\boost_1_68_0\boost/winapi/time.hpp(58): error C2556: 'boost::winapi::DWORD_ GetTickCount(void)': overloaded function differs only by return type from 'DWORD GetTickCount(void)'
    C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\sysinfoapi.h(159): note: see declaration of 'GetTickCount'
    Z:\kJams\External\boost_1_68_0\boost/winapi/time.hpp(58): error C2371: 'GetTickCount': redefinition; different basic types
    C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\sysinfoapi.h(159): note: see declaration of 'GetTickCount'
    Z:\kJams\External\boost_1_68_0\boost/winapi/semaphore.hpp(25): error C2733: 'CreateSemaphoreA': second C linkage of overloaded function not allowed
    C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winbase.h(3076): note: see declaration of 'CreateSemaphoreA'

     
  • David M. Cotter

    David M. Cotter - 2019-01-08

    seems that #defining BOOST_USE_WINDOWS_H was sufficient

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.