Page 1 of 1

wxwidgets with sfml

Posted: Wed Aug 21, 2019 2:38 am
by gustxw
hey there im trying to get sfml 2.4.2 to work with wx widgets
3.1 on codeblocks windows 10 and im following this guide
https://www.sfml-dev.org/tutorials/1.6/ ... om-control
because its the only
one that ive found even tho its for sfml 1.6

ive gotten thru some of the other hurdles but have no ideas how to fix this i googled rvalues and lvalues but
still cant think of how to fix this

right now im getting this error here/attached

invalid initialization of non-const reference of type 'wxPoint&' from an rvalue of type 'wxPoint'|

Re: wxwidgets with sfml

Posted: Wed Aug 21, 2019 5:17 am
by doublemax

Code: Select all

    MyCanvas(wxWindow*  Parent,
             wxWindowID Id,
             const wxPoint&   Position,
             const wxSize&    Size,
Change Position and Size to be const references.

Re: wxwidgets with sfml

Posted: Wed Aug 21, 2019 2:16 pm
by gustxw
thanks!