From: Lee D. <le...@ea...> - 2007-09-27 14:02:00
|
Matthew Gong wrote: > Hi Lee, > Oh, I check the cvs version, and sensor.h/.cpp is not ready for > unicode mode... > I've fix it. > > Matt > > 在 2007-09-26三的 18:39 -0400,Lee Duke写道: > >>> >>> >> Okay. I updated my files from the cvs repository. >> >> Now, besides about two billion warnings, I get: >> [snip] >> sensor.cpp:199: error: ambiguous overload for ‘operator<<’ in >> ‘((wxTextOutputStream*)((wxTextOutputStream*)((wxTextOutputStream*)stream)->wxTextOutputStream::operator<<(((const wxString&)((const wxString*)(& Pre)))))->wxTextOutputStream::operator<<(((const wchar_t*)" \000\000\000 \000\000\000<\000\000\000m\000\000\000a\000\000\000x\000\000\000>\000\000\000\000\000\000")))->wxTextOutputStream::operator<<(((Sensor*)this)->Sensor::min) << "</max>"’ >> [snip] >> sensor.cpp:247: error: no match for ‘operator=’ in >> ‘((Sensor*)this)->Sensor::quant_property = >> JSBSim::Element::GetAttributeValue(std::string)(std::basic_string<char, std::char_traits<char>, std::allocator<char> >(((const char*)"name"), ((const std::allocator<char>&)((const std::allocator<char>*)(& std::allocator<char>())))))’ >> >> I wouldn't normally complain about the warning, but in this case they >> make it very difficult to spot the errors. >> >> Lee >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ Jsbsimcommander-devel mailing list Jsb...@li... https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel >> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Jsbsimcommander-devel mailing list > Jsb...@li... > https://lists.sourceforge.net/lists/listinfo/jsbsimcommander-devel > Now I have different errors. Maybe I missed them last time. Here's the entire record--- make Making all in src make[1]: Entering directory `/home/duke/Simulation/jsbsim_commander/src' Making all in simgear make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear' Making all in props make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear/props' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear/props' Making all in xml make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear/xml' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear/xml' make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/simgear' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear' make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/simgear' Making all in input_output make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/input_output' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/input_output' Making all in math make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/math' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/math' Making all in wx make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx' Making all in deprecated make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx/deprecated' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx/deprecated' Making all in ogl make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx/ogl' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx/ogl' Making all in plot make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx/plot' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx/plot' make[3]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/wx' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx' make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/wx' Making all in gui make[2]: Entering directory `/home/duke/Simulation/jsbsim_commander/src/gui' if g++ -DPACKAGE_NAME=\"JSBSimCommander\" -DPACKAGE_TARNAME=\"jsbsimcommander\" -DPACKAGE_VERSION=\"0.1.2\" -DPACKAGE_STRING=\"JSBSimCommander\ 0.1.2\" -DPACKAGE_BUGREPORT=\"mat...@gm...\" -DPACKAGE=\"jsbsimcommander\" -DVERSION=\"0.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src -I../../src/math -I../../src/input_output -I../../src/simgear/xml -I../../src/gui -I../../src/bitmaps -DwxUSE_DEPRECATED=1 -DwxUSE_PROLOGIO=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -MT sensor_dlg.o -MD -MP -MF ".deps/sensor_dlg.Tpo" -c -o sensor_dlg.o sensor_dlg.cpp; \ then mv -f ".deps/sensor_dlg.Tpo" ".deps/sensor_dlg.Po"; else rm -f ".deps/sensor_dlg.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"JSBSimCommander\" -DPACKAGE_TARNAME=\"jsbsimcommander\" -DPACKAGE_VERSION=\"0.1.2\" -DPACKAGE_STRING=\"JSBSimCommander\ 0.1.2\" -DPACKAGE_BUGREPORT=\"mat...@gm...\" -DPACKAGE=\"jsbsimcommander\" -DVERSION=\"0.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src -I../../src/math -I../../src/input_output -I../../src/simgear/xml -I../../src/gui -I../../src/bitmaps -DwxUSE_DEPRECATED=1 -DwxUSE_PROLOGIO=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -MT actuator.o -MD -MP -MF ".deps/actuator.Tpo" -c -o actuator.o actuator.cpp; \ then mv -f ".deps/actuator.Tpo" ".deps/actuator.Po"; else rm -f ".deps/actuator.Tpo"; exit 1; fi if g++ -DPACKAGE_NAME=\"JSBSimCommander\" -DPACKAGE_TARNAME=\"jsbsimcommander\" -DPACKAGE_VERSION=\"0.1.2\" -DPACKAGE_STRING=\"JSBSimCommander\ 0.1.2\" -DPACKAGE_BUGREPORT=\"mat...@gm...\" -DPACKAGE=\"jsbsimcommander\" -DVERSION=\"0.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -I. -I../../src -I../../src/math -I../../src/input_output -I../../src/simgear/xml -I../../src/gui -I../../src/bitmaps -DwxUSE_DEPRECATED=1 -DwxUSE_PROLOGIO=1 -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -g -O2 -MT actuator_dlg.o -MD -MP -MF ".deps/actuator_dlg.Tpo" -c -o actuator_dlg.o actuator_dlg.cpp; \ then mv -f ".deps/actuator_dlg.Tpo" ".deps/actuator_dlg.Po"; else rm -f ".deps/actuator_dlg.Tpo"; exit 1; fi actuator_dlg.cpp: In member function ‘void ActuatorComponentEditor::GetDataIn(Actuator*)’: actuator_dlg.cpp:279: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> actuator_dlg.cpp:280: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> actuator_dlg.cpp:281: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> actuator_dlg.cpp:282: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> make[2]: *** [actuator_dlg.o] Error 1 make[2]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src/gui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/duke/Simulation/jsbsim_commander/src' make: *** [all-recursive] Error 1 |