From: Dominique F. <fo...@gr...> - 2008-09-30 07:20:17
|
Hi Mathieu, Le 25 sept. 08 à 21:57, Mathieu Labbé a écrit : > Hi, > I have a problem when I build from source (CVS) the GuidoEngineLib > on Visual Studio 2005. I got this error: > > 1>c:\libraries\guidolib\lib-score-engine-add\debugdevice.h(120) : > error C2512: 'std::basic_ostream<_Elem,_Traits>' : no appropriate > default constructor available > 1> with > 1> [ > 1> _Elem=char, > 1> _Traits=std::char_traits<char> > 1> ] Actually, the real problem is the Microsoft compatibility with Microsoft :-)) It's always a significant (and painful) effort to 'port' Visual Studio 6 code to Visual Studio 2005. There are always some API changes and some unexpected behavioral changes, resulting in hours of debugging or of trying to understand enigmatic compilers errors. > I googled a little bit to see that, it seems to be a compiler > version issue: > http://bytes.com/forum/thread451578.html > > For now, I fixed temporary this define in the file "debugdevice.h" : > -line 116 : #define dbgStream (filestream ? (*filestream) : cout) > +line 116 : #define dbgStream cout if it works, it's the solution. Anyway, the debugdevice.h is only present for your debug purpose. > > I don't know if you plan to support Visual Studio 2005 +, but it is > something to think. > you're probably right. But before that, I'd prefer to support gnu compiler (via mingw). I'll try to see what I can do in a near future. Is 'debugdevice.h' error the only one when compiling with 2005? -- dominique |