From: Francesco M. <f18...@ya...> - 2005-09-04 18:16:42
|
Hi, >>>The third problem is not really a big problem, but a bit inconvenient: >>>> > the warning level is set to 4 in the dsp files by bakefile. This leads >>>> > to dozens of warnings which can savely be ignored, but it makes >>>> > locating error messages more diffcult. >> >>> do you mean the crash I told you in the last mail ? > > >No. If you set the warning level to 4 before compiling minimal.cpp >you'll see what I mean. At least in the Unicode DLL Debug build I get >30 warnings, almost all in MSVC standard include files. sorry I did read what you said in the last mail too quickly: I now understand what you are talking about. I always build in static Unicode Debug mode thus I don't have the DLL problem but I do see various warnings when I set to 4 the warning level. This lead me to find some problems. In particular wxFileOutputStream outfile(fileName); outfile.Write(wxMemoryInputStream(m_buffer)); must be changed: wxFileOutputStream outfile(fileName); wxMemoryInputStream tmp(m_buffer) outfile.Write(tmp); since mingw32, GCC and all other ANSI-compliant compilers won't accept this. I attach as example the error log from mingw. Otherwise the code compiles with MSVC only. Also code like for (int i=.... ) { } printf("%d", i); must be turned into: int i; for (i=.... ) { } printf("%d", i); since for ANSI C++ the "i" died inside the FOR loop (but not for MSVC). The two errors above are the price to pay when you use a compiler like MSVC ;-) Francesco |