私は現在Visual Studio 2008で最後にコンパイルされた古代プログラムを更新しています。最新のWindows sdk(10.0。 15063.0)しかし、gdiplusライブラリはあいまいなシンボルエラーを投げます。 具体的に:gdipluspathはcstddefとrpcndr.hのあいまいなバイトを投げる
3>c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\GdiplusPath.h(145): error C2872: 'byte': ambiguous symbol
3>c:\program files (x86)\windows kits\10\include\10.0.15063.0\shared\rpcndr.h(191): note: could be 'unsigned char byte'
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\include\cstddef(15): note: or 'std::byte'
私はこの問題で発見した標準の試みが、残念ながら曖昧エラーがVisual Studioのことで、新しい包含によって直接私によって作られた、とされていないと仮定(私はcstddef理解するものはどれありますか?)。
どうすれば、外部ライブラリが1つのシンボル定義を使用する方向に向けることができますか?
ご協力いただきまして誠にありがとうございます。
ありがとうございます。 minwindef.hからバイトをBYTEとして定義することで問題が解決されました。 私は自分のコードでminとmaxの定義を幸いにも制御できました。 –