For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Compiling mfcsample in Visual Studio 2008

Tester's picture

Hello All,

I am trying to compile the mfcsample.sln in Visual Studio 2008 (so that I can create the mfcsample.lib so I can compile the examples) and am receiving the following errors:

Error 1 error C2556: 'int OCC_2dView::MoveEvent2D(const Standard_Integer,const Standard_Integer)' : overloaded function differs only by return type from 'void OCC_2dView::MoveEvent2D(const Standard_Integer,const Standard_Integer)' c:\opencascade6.3.0\samples\standard\mfc\common\occ_2dview.cpp 667 mfcsample

Error 2 error C2371: 'OCC_2dView::MoveEvent2D' : redefinition; different basic types c:\opencascade6.3.0\samples\standard\mfc\common\occ_2dview.cpp 667 mfcsample

Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\opencascade6.3.0\samples\standard\mfc\common\occ_2dview.cpp 668 mfcsample

Error 4 error C2556: 'int ISession2D_Shape::SetNbIsos(Standard_Integer &)' : overloaded function differs only by return type from 'void ISession2D_Shape::SetNbIsos(Standard_Integer &)' c:\opencascade6.3.0\samples\standard\mfc\common\isession2d\isession2d_shape.cpp 54 mfcsample

Error 5 error C2371: 'ISession2D_Shape::SetNbIsos' : redefinition; different basic types c:\opencascade6.3.0\samples\standard\mfc\common\isession2d\isession2d_shape.cpp 54 mfcsample

Has anyone encountered these errors before? Anyone have any advice or a solution. It would be greatly appreciated.

Thanks in advance.