次の「マクロの再定義」警告を修正しようとしています:
1>Path\to\MKL\include\math.h(1577): warning C4005: 'HUGE_VALF' : macro redefinition
1> Path\to\Microsoft Visual Studio 12.0\VC\include\../../vc/include/math.h(104) : see previous definition of 'HUGE_VALF'
このコードから生成:
#include "ABC/CUDA_FFT.h"
#include "ABC/logging.h"
#include "Utilities/Utils.h"
#pragma warning( push )
#pragma warning( disable : 4005 ) // macro redefinition (no effect)
#include <cufft.h>
#include <cuda_runtime.h>
#pragma warning( pop )
#include <complex>
HUGE_VALF
マクロは両方のインクルード ファイルで定義されます。
#undef HUGE_VALF
上記のヘッダーを含める前に試しましたが、それでも同じ警告が表示されました。
Intel と Microsoft の両方の数学ライブラリを使用する必要があるため、この警告が生成されないようにするにはどうすればよいですか?