bugtherion - Bugs: bug #53985, Problem compiling with libwx 3.0.2

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53985: Problem compiling with libwx 3.0.2

Submitter:  Alvaro Aguilera <alewar>
Submitted:  Sat 26 May 2018 02:38:07 PM UTC
   
 
Status:  None Assigned to:  None
Originator Name:  alewar Open/Closed:  Open

Sat 26 May 2018 02:38:07 PM UTC, original submission:  

Hello,

I'm trying to compile Therion 5.4.1 on OpenSUSE 42.3 and get the following error:

lxGUI.cxx: In member function ‘int lxFrame::GetFileType(wxString)’:
lxGUI.cxx:517:73: error: invalid cast from type ‘wxString’ to type ‘const wxChar* {aka const wchar_t*}’
 #define matchtype(w,t) if (fName.EndsWith((const wxChar *)wxString(_T(w)))) return t;
                                                                         ^
lxGUI.cxx:518:3: note: in expansion of macro ‘matchtype’
   matchtype(".lox",1);
   ^
lxGUI.cxx:517:73: error: invalid cast from type ‘wxString’ to type ‘const wxChar* {aka const wchar_t*}’
 #define matchtype(w,t) if (fName.EndsWith((const wxChar *)wxString(_T(w)))) return t;
                                                                         ^
lxGUI.cxx:519:3: note: in expansion of macro ‘matchtype’
   matchtype(".LOX",1);
   ^
lxGUI.cxx:517:73: error: invalid cast from type ‘wxString’ to type ‘const wxChar* {aka const wchar_t*}’
 #define matchtype(w,t) if (fName.EndsWith((const wxChar *)wxString(_T(w)))) return t;
                                                                         ^
lxGUI.cxx:520:3: note: in expansion of macro ‘matchtype’
   matchtype(".plt",2);
   ^
lxGUI.cxx:517:73: error: invalid cast from type ‘wxString’ to type ‘const wxChar* {aka const wchar_t*}’
 #define matchtype(w,t) if (fName.EndsWith((const wxChar *)wxString(_T(w)))) return t;
                                                                         ^
lxGUI.cxx:521:3: note: in expansion of macro ‘matchtype’
   matchtype(".PLT",2);

   ^
lxGUI.cxx:517:73: error: invalid cast from type ‘wxString’ to type ‘const wxChar* {aka const wchar_t*}’
 #define matchtype(w,t) if (fName.EndsWith((const wxChar *)wxString(_T(w)))) return t;
                                                                         ^
lxGUI.cxx:522:3: note: in expansion of macro ‘matchtype’
   matchtype(".3d",3);
   ^
lxGUI.cxx:517:73: error: invalid cast from type ‘wxString’ to type ‘const wxChar* {aka const wchar_t*}’
 #define matchtype(w,t) if (fName.EndsWith((const wxChar *)wxString(_T(w)))) return t;
                                                                         ^
lxGUI.cxx:523:3: note: in expansion of macro ‘matchtype’
   matchtype(".3D",3);
   ^
Makefile:147: recipe for target 'lxGUI.o' failed
make[1]: * [lxGUI.o] Error 1
make[1]: Leaving directory '/home/alewar/bin/therion-5.4.1/loch'
Makefile:206: recipe for target 'loch/loch' failed
make: * [loch/loch] Error 2

Alvaro Aguilera <alewar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by alewar (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code