No need for a patch, just add "wxjpeg" to your link libraries. Since you didn't specify "MONOLITHIC=1" when building wxWidgets, the default multilib version was built. When using the multilib version of wxWidgets, most programs need wxbase at least and usually the utility libraries (wxpng, wxtiff, wxjpeg, wxzlib, wxexpat, wxregex) and platform libraries as well. (For Windows, wxmsw_core, wxmsw_adv, and the rest).