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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / Compiling mfcsample in Visual Studio 2008

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
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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