From: Jeff P. <pal...@al...> - 2003-07-30 14:24:52
|
The new stream classes are in the std namespace. In order to use them you need to use the std namespace, the effected classes, or prefix the class names with std::. Also, I haven't been able to get libltdl to compile under VC 7, so I reverted to using driver2.cpp instead of driver2.cc. I've decided not to use opencxx in my project because it barfs on some of our nasty template code, so my port isn't very well tested. However, I'll send you the code if you want to take on the responsibility for reintegrating it with the development branch. Iwan Birrer wrote: >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 > > |