debug版与Release版的问题???
在我的程序中,有多个视图,添加视图类时,每个视图类都添加了DEBUG代码如下:
头文件:
#ifndef _DEBUG
inline CEx07bDoc * CEx07bScrollView::GetDocument()
{return (CEx07bDoc *) m_pDocument;}
# endif
cpp 文件
#ifdef _DEBUG
{ CEx07bDoc* CEx07bScrollView::GetDocument()
inline
ASSERT (m_pDocument->IsKindof(RUNTIME_CLASS(CEx07bDoc)));
return (CEx07bDoc*) m_pDocument;
}
#endif
程序在调试版编译时顺顺利利,可在RELEASE 版编译时却报错:
error ;'class "CEx07bDoc * _thiscall CEx07bScrollView::GetDocument(void)'
member function already defined or declared.
请教怎么解决??????