CLion & wxWidgets

Completed

I'm a returner to C/C++ after a lot of years away, and a current 'All products' subscriber - mainly using phpstorm for web fun.  I've decided to CLion a try.  I've set up a working environment and can create simple programs - but to develop something that might actually be useful I've installed the wxWidgets libraries.  I can't get CLion to compile the examples or the basic wxWidgets 'Hello World' and need some help with this.  I get undefined reference errors which from googling appear to be related to wxWidgets 3.1.0, and are due to missing libraries shlwapi.a and version.a.

Google helpfully suggests adding these to the linking list - and I've tried adding them as cmake build options in CLion as -lshlwapi -lversion but this makes no difference.

Can you help point me in the right direction please?

I'm using Windows 10 Pro, CLion 2016.2.3 and now CLion 2016.3 EAP release candidate, TDM-GCC-64, and wxWidgets-3-1-0.  The toolchain appears correctly configured as far as I can tell.  wxWidgets was compiled on the same machine using TDM-GCC-64/MinGW32-make

Any help gratefully received.

0
1 comment
Avatar
Permanently deleted user

Just in case anyone is interested, I sorted this issue - without any library dependencies.  I can now compile the wxWidgets hello world example without errors.

I think the issue was actually lack of the mingw32-make flag CXXFLAGS="-std=gnu++11"

Thanks for reading, if anyone has.

0

Please sign in to leave a comment.