
Thu, 09/30/2010 - 20:18
Hi, I'm a beginner on open cascade. I install the open cascade 6.3 and VS 2005.When I rebuild the mfc sample on the open cascade document.There are 3 errors as the following:
c:\opencascade6.3.0\samples\standard\mfc\03_2dsamples\03_5_2dattributes\src\2dattributesdoc.cpp(113) : error C2065: 'j' : undeclared identifier
c:\opencascade6.3.0\samples\standard\mfc\03_2dsamples\03_5_2dattributes\src\2dattributesdoc.cpp(225) : error C2065: 'i' : undeclared identifier
c:\opencascade6.3.0\samples\standard\mfc\03_2dsamples\03_5_2dattributes\src\2dattributesdoc.cpp(227) : error C2228: left of '.Index' must have class/struct/union
I need your kindly help.I have set the directories library files as C:\OpenCASCADE6.3.0\ros\win32\lib
what other things I should to do?
Thanks for your help.
Wed, 10/06/2010 - 17:47
This is really not an OCC related question. If you use VS 2005, you need to declare variable a little bit differently. For example, on line 93, instead of having:
for (Standard_Real j=15;j<=20;j++)
You should have:
Standard_Real j = 0;
for (j=15;j<=20;j++)
This will fix your first error.
James