Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compilation error

Status
Not open for further replies.

Iverson3

Programmer
Aug 6, 2004
10
CA
HI,

I recently tried to compile a project, which links to another project. If I build these two projects independently, there is no problem at all. However, if I tried to build them together: namely, linking one to the other. Then I got the following compilation error:

(Here is just a sample of the error msg)
***********************************************************
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\ios.h(207) : error C2872: 'streambuf' : ambiguous symbol
c:\program files\microsoft visual studio\vc98\include\ios.h(210) : error C2872: 'streambuf' : ambiguous symbol
***********************************************************

close inspection on the error msg shows that its those Visucal C++ header files that are picked for the error. So I am just wondering what does this imply?

Thanks in advance,
 
Check <iostream> and <iostream.h> etc in your sources. Avoid <iostream.h> old stream library includes. Change all <*.h> deprecated library references to standard headers w/o .h...
May be it helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top