This forum has been archived. Please start a new discussion on GitHub.

Compile error, slice2cpp, VC7


I've just downloaded Ice, and most seem to compile fine this far, but
I get this error message when compiling Gen.cpp in the slice2cpp project:
../../include\IceUtil\OutputUtil.h(131) : error C2678: binary '<<' : no operator found which takes a left-hand operand of type '_STL::ostringstream' (or there is no acceptable conversion)

I've put my build log at:
Using .NET 2002 on WinXP box.

Any hints on what I'm missing?


On a side note: haven't been able to open the mentioned file in VC without it stop responding either.. (weird, any other file works just fine, or the same file with another text tool..)


  • bernard
    bernard Jupiter, FL
    Hi Andreas,

    This looks like a problem with VC7 and STLPort.
    In your environment:

    I use VC7 with the bundled STL implementation all the time without any problem.

    Do you really want to use STLPort to build Ice with VC7?

  • Oh, yes, that did the trick!

    Misread the INSTALL files where I spoted the requirement of STLport (but it was for VC6), but I'm curious as to what is wrong, since it's the same code I would use if I had VC6.