News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

fatal error: wx/wxprec.h: No such file or directory

Started by Landslyde, April 10, 2018, 01:51:19 AM

Previous topic - Next topic

Landslyde

My old laptop finally bit the dust and I got an svn build of C::B from https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks.  This is the same I was using before my Sony VAIO blew a fuse.  But now I have this error when I try to compile a GUI. 

I've sudo apt-get install libwxgtk3.0-dev, but that didn't work. When I got C::B from that site before, it worked out of the box. I didn't have to add anything.  But I had to add all of this this time:
sudo apt install codeblocks-wxcontrib-headers codeblocks-contrib codeblocks-libwxcontrib0

So what now?

stahta01

Does the command work from the command line?

wx-config --list


If it does, post what wx configs it lists.

If it does not, you need to fix it.

Note: After fixing it you likely will need to re-start code::blocks to get C::B to see the change.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Landslyde