Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Compiling mfcsample in Visual Studio 2008

Compiling mfcsample in Visual Studio 2008
Tester 2009/10/27 16:30
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.
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map