From: Iwan B. <ib...@co...> - 2003-07-30 14:12:40
|
Hi, Sorry, forgot the 'using namespace std' line... But there is still an error: Anybody an idea how to solve it? \opencxx\src\buffer.cc(455) : error C2665: 'operator new[]' : none of the 4 overloads can convert parameter 2 from type 'Opencxx::GCPlacement' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new(74): could be 'void *operator new[](size_t,void *) throw()' C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\new(94): or 'void *operator new[](size_t,const std::nothrow_t &) throw()' while trying to match the argument list '(unsigned int, Opencxx::GCPlacement)' Line 455 of buffer.cc looks like this: ProgramString::ProgramString() : Program("unknown") { buf = new (GC) char[BufSize]; // Line 455 buf[0] = '\0'; size = BufSize; index = str_length = 0; } Thanks for any help! Iwan ----- Original Message ----- From: "Iwan Birrer" <ib...@co...> To: "Benjamin Scherrey" <sch...@pr...>; <ope...@li...> Sent: Wednesday, July 30, 2003 2:32 PM Subject: Re: [Opencxx-users] Compiling on Windows 2000 VC7 > Hi, > > Thanks a lot for your answer. The only problem is, that I now have even more > errors... > > The first few errors look like this: > > c:\opencxx\src\buffer.h(81) : error C2061: syntax error : identifier > 'ostream' > c:\opencxx\src\buffer.h(108) : error C2143: syntax error : missing ')' > before '&' > c:\opencxx\src\buffer.h(108) : error C2143: syntax error : missing ';' > before '&' > c:\opencxx\src\buffer.h(108) : error C2460: > 'Opencxx::Opencxx::ProgramFile::ifstream' : uses > 'Opencxx::Opencxx::ProgramFile', which is being defined > c:\opencxx\src\buffer.h(106) : see declaration of > 'Opencxx::Opencxx::ProgramFile' > c:\opencxx\src\buffer.h(108) : error C2059: syntax error : ',' > ... etc > > > Thanks > Iwan > > > > > > ----- Original Message ----- > From: "Benjamin Scherrey" <sch...@pr...> > To: <ope...@li...>; "Iwan Birrer" > <ib...@co...> > Sent: Wednesday, July 30, 2003 2:06 AM > Subject: Re: [Opencxx-users] Compiling on Windows 2000 VC7 > > > > Haven't tried it myself but my guess would be MSVC++ is finally attempting > to be a compliant C++ > > compiler. Inclusion of standard header files with .h extension is > deprecated. Try replacing the line > > that #include 'fstream.h' with #include <fstream> and see if that doesn't > make a difference. There > > are likely to be other such examples I'm sure. > > > > Good luck, > > > > Ben Scherrey > > > > 7/29/2003 3:36:01 AM, "Iwan Birrer" <ib...@co...> wrote: > > >Is there anybody who succesfully compiled the source with the win32 > > >makefile? I tried to compile it with the following command: > > > > > >nmake Makefile.occ > > > > > >but without succes. The error message was the following: > > >c:\opencxx\src\buffer.h(39) : fatal error C1083: Cannot open include > file: > > >'fstream.h': No such file or directory > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > Opencxx-users mailing list > > Ope...@li... > > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > |