当前位置: 首页 > 工具软件 > OpenPhone > 使用案例 >

openphone编译

吴同
2023-12-01
1.出现 "ft_set " type redefinition
   修改main.h中
  #include <ptlib.h>//放前
  #include <wx/wx.h>//放后

2.出现error C2440: ’static_cast’ : cannot convert from ’void (__thiscall OptionsDialog::*)(class wxCommandEvent &)’ to ’void (__thiscall wxEvtHandler::*)(class wxListEvent &)’
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

注释  EVT_LIST_ITEM_SELECTED(XRCID("CodecOptionsList"), OptionsDialog::SelectedCodecOption)
EVT_LIST_ITEM_DESELECTED(XRCID("CodecOptionsList"), OptionsDialog::DeselectedCodecOption)

3.出现wxxrc.lib找不到。
   wxxrc.lib改为wxmsw26_xrc.lib

4.出现unresolved external symbol "public: virtual void __thiscall wxAppConsole::HandleEvent
   末解决(可能是wxwindows.dsp编译有问题)  
 类似资料: