syntax error : missing ';' before identifier 'PVOID64' when compiling winnt.h

前端 未结 6 1071
夕颜
夕颜 2021-01-04 10:57

I\'ve recently got the source-code on a application. When im trying to build the solution, I get an error in all parts where winnt.h is included. The error code

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 11:27

    If you are using librdkafka, you will get this error whenever "Windows.h" included.

    I fixed it by rename "librdkafka/include/basetsd.h" to a different name, or access this library header via sub path!

    I think the author of this library made this file to deal with OS platform compatibility. But with the same file name "basetsd.h" as Windows Core, it just confusing Visual Studio.

提交回复
热议问题