OCC5.2 compilation problem on windows 2000 professional with VC++ 6.0

Hello,

I get the following error when compiling with OCC5.2 on windows 2000 professional with VC++ 6.0.

Can anyone help me to solve this issue?

Thanks in advance
Senthil Kumar
--------------------Configuration: incad - Win32 Release--------------------
Compiling...
CasArc.cpp
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(146) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(159) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(159) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(160) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(180) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(207) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(210) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(219) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\streamb.h(90) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\streamb.h(90) : error C2872: 'streamoff' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\streamb.h(91) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\streamb.h(91) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(258) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(258) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(259) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(259) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(260) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(260) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(272) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(272) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(272) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(273) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(290) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(67) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(74) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(74) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(90) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(102) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(117) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(118) : error C2872: 'streamoff' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(119) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(126) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(132) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(139) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(140) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(140) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(140) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(142) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(143) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(145) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(146) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(148) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(149) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(150) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(152) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(153) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(155) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(156) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(157) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(159) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(161) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(162) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(167) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(169) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(169) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(170) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(170) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(175) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(175) : error C2872: 'istream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(177) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(177) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(178) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(178) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(179) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(179) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(62) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(70) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(70) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(87) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(94) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(95) : error C2872: 'streamoff' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(96) : error C2872: 'streampos' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(101) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(107) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(112) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(113) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(113) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(113) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(115) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(116) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(118) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(119) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(121) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(123) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(124) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(126) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(127) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(133) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(135) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(135) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(136) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(136) : error C2872: 'streambuf' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(143) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(143) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(144) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(144) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(145) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(145) : error C2872: 'ostream' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(147) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(147) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(148) : error C2872: 'ios' : ambiguous symbol
F:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(148) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

CasArc.obj - 102 error(s), 0 warning(s)

Rob Bachrach's picture

Two suggestions:
1. Make sure you have WNT defined in your compile arguments (ie. /DWNT)

2. If you are including any of the C++ stream header files in your own
code, make sure you use the new style includes. For example:
#include

Melissa Suter's picture

Hi there,
I am getting the same 'ambiguous symbol' errors as you previously did, and I was just wondering how you were able to fix this problem. Any advice would be greatly appreciated.
Thanks,
Melissa