Visual Studio 2012 では、math.h で既に宣言されているため、特定の名前をグローバル識別子として宣言できません。レガシーの問題により、ソース コード内の識別子の名前を変更するのは不便です。名前を変更する以外のオプションは何ですか?
#include "stdafx.h"
// iostream includes math.h which declares the following
_CRT_NONSTDC_DEPRECATE(_y1) _CRTIMP double __cdecl y1(_In_ double _X);
int y1; // error - y1 is already declared
void Main()
{
return;
}
おまけの質問: Visual Studio 2012 はこれを準拠した方法で処理していますか?