C++相談室 part87
■ このスレッドは過去ログ倉庫に格納されています
0204デフォルトの名無しさん
2010/12/16(木) 22:45:40#define DEBUGWRAP_DEBUG
//Debug.hpp
namespace DebugWrap
{
void OutputDebugStrA(const char* pString);
void OutputDebugStrW(const wchar_t* pString);
}
#endif
//Debug.cpp
#include "DebugWrap/Debug.hpp"
#include <windows.h>
namespace DebugWrap
{
void OutputDebugStrA(const char* pString)
{
OutputDebugStringA(pString);
}
void OutputDebugStrW(const wchar_t* pString)
{
OutputDebugStringW(pString);
}
}
というのをVCで /Za(言語拡張を無効にする)オプションで
コンパイルしたところ、予期せぬ EOF が検出されました。エラーが出ます
どこがおかしいですか?この有効状態ではコンパイルが通ります
■ このスレッドは過去ログ倉庫に格納されています