Hi,
I have some code in a different directory which compiles fine as a console
window project. I wish to use the same source code files in my win32
application that uses mfc so I simply added them using
project->addtoproject->add files. When I compile though it says it cannot
find these files. I tried making a copy of all the source files I wanted
and placed them in the same directory as the win32 project directory and it
came up with all these errors when I did an include statement on one of the
files:
:\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\ios.h(207) : error
C2872: 'streambuf' : ambiguous symbol
c:\program files\microsoft visual studio\vc98\include\ios.h(210) : error
C2872: 'streambuf' : ambiguous symbol
There are many more, 102, before the compiler bailed out. What I am asking
for seems like a regular use of VC++ so do I need to configure anything? My
preferred situation is to keep the source files from the console app in
their original directory so I dont have inconsistent copies.
Thanks for your help in advance.