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

Related pages

About Compile the mfcsample.dsw(VC++6.0)

Anonymous's picture
Forums: 

Hi,

First,when i try to compile mfcsample.dsw, i get the folowing error.
d:\opencascade5.2\samples\standard\mfc\common\isession2d\isession2d_objectowner.h(52) :
error C2679: binary ' should I include iostream.h in StdAfx.h?

Second,if I include iostream.h in StdAfx.h,then errors has turned up.

--------------------Configuration: mfcsample - Win32 Debug--------------------
Compiling...
StdAfx.cpp
d:\opencascade5.2\ros\inc\standard.hxx(94) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard.hxx(96) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_storable.hxx(76) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_storable.hxx(121) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_transient_proto.hxx(52) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\handle_standard_transient.hxx(92) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\handle_standard_transient.hxx(96) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\handle_standard_transient.hxx(203) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_asciistring.hxx(240) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_asciistring.hxx(241) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_asciistring.hxx(241) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_asciistring.hxx(242) : error C2872: 'istream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_asciistring.hxx(243) : error C2872: 'istream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_asciistring.hxx(243) : error C2872: 'istream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_sstream.hxx(40) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.hxx(85) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.hxx(101) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.hxx(102) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.hxx(103) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.lxx(13) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.lxx(13) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_type.hxx(157) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_failure.hxx(68) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_failure.hxx(69) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_failure.lxx(9) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\standard_failure.lxx(9) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_extendedstring.hxx(169) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_extendedstring.hxx(170) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_extendedstring.hxx(170) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\tcollection_basicmap.hxx(68) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\mmgt_storagemanager.hxx(69) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\mmgt_storagemanager.lxx(28) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\mmgt_storagemanager.hxx(114) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\ais_interactivecontext.hxx(409) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\toploc_location.hxx(109) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\toploc_location.hxx(149) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\topabs.hxx(67) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\topabs.hxx(67) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\topabs.hxx(68) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\topabs.hxx(68) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\topabs.hxx(69) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\topabs.hxx(69) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\prs3d_drawer.hxx(188) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\prs3d_lineaspect.hxx(80) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\prs3d_isoaspect.hxx(76) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\breptools.hxx(117) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\breptools.hxx(118) : error C2872: 'ostream' : ambiguous symbol
d:\opencascade5.2\ros\inc\breptools.hxx(119) : error C2872: 'istream' : ambiguous symbol
Error executing cl.exe.

mfcsample.dll - 48 error(s), 0 warning(s)

Can anyone help me?

Sophia's picture

I found the solution already.

Shen Yan's picture

hi, sophia, i have the same problem as you, when compiling mfcsample, the errers are: c:\opencascade5.2\samples\standard\mfc\common\isession2d\isession2d_objectowner.h(52) : error C2679: binary ' ISession2D_ObjectOwner.cpp
c:\opencascade5.2\samples\standard\mfc\common\isession2d\isession2d_objectowner.h(52) : error C2679: binary ' Generating Code...
Error executing cl.exe.

mfcsample.dll - 2 error(s), 0 warning(s)

i saw you had solved it, how u did it? thanks a lot

Sophia's picture

Hi,
You can change the line "aStream And this should be thank's for wankai.

Best Regard,
Sophia

Saravana's picture

Hi Sopia!
I too got the same error while running the mfc sample file. can you explain the solution clearly, which aStream, i have to change to what. Need some help.
regards
Saravana

Ravi satya's picture

Saravana,
I saw you are an active OpenCascade developer. We are pursuing an engagement using OpenCascade to develop a Vc++ based CAD application. We are looking for some advice and help. can you please contact me and we can discuss further. My email is rsatya@megasoft.com

Saravana's picture

How can i help you? Are you going to make ur new CAD modeller to be opensource? Contact me in savisie143@yahoo.com

Roman Lygin's picture

Hello,
If you have contractual engagements and need professional support I would recommend you to consider Open CASCADE support services (http://www.opencascade.org/support/). As a former employee I can admit commercial ISV companies (independent software vendors) well benefited from them.
Roman

Emilie's picture

how to solve this problem????

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(146) : error C2872: 'streambuf' : ambiguous symbol
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(159) : error C2872: 'ostream' : ambiguous symbol
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(159) : error C2872: 'ostream' : ambiguous symbol
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(160) : error C2872: 'ostream' : ambiguous symbol
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(180) : error C2872: 'streambuf' : ambiguous symbol

C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(148) : fatal error C1003: error count exceeds 100; stopping compilation

Ganpat's picture

Can u Please tell me how exactly to solve the problem.

Sandor Racz's picture

Ganpat,

The symptom above might occur using VC 6.0 without SP5. Using SP5 fixes the problem.

Regards,

Sandor

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.