News:

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

Main Menu

wxSmith and C::B 10.05

Started by Landslyde, December 01, 2012, 05:55:45 AM

Previous topic - Next topic

Landslyde

Just installed C::B with wxSmith. Did nothing more than add a BoxSizer and dropped a button on it. Hit the "Build and Run" and it immediately threw an error to this line of code:

#include <wx/app.h>

/home/woogi/Desktop/Code Blocks/Test1/tester2/tester2App.h|13|fatal error: wx/app.h: No such file or directory|
||=== Build finished: 1 errors, 0 warnings ===|



Now my best guess here is that this has to do with wxSmith not being available for the include. But I've checked and wxSmith is installed.

I run Linux Mint 13 Mate and downloaded C::B and wxSmith from the repository, so this should be a complete install, everything where it should be and AS it should be.  I suppose I've done something wrong here...somewhere. So if someone could help me get this on track I'd appreciate it. Thanks in advance.

Landslyde

PS: I read the info presented to the Forum by the C::B upper echelons. I hold no doctorate in anything, so I hope you don't mind a man coming in who asks questions that may seem trivial to you. I'm just trying to learn.

MortenMacFly

Quote from: Landslyde on December 01, 2012, 05:55:45 AM
Now my best guess here is that this has to do with wxSmith not being available for the include. But I've checked and wxSmith is installed.
wxSmith doesn't organise includes, you do (always, btw). Also, wxSmith does not provide the wxWidgets sources required for building wx applications (as there are many flavours, versions, btw). So: Grab wxWidgets, install it as dev packages or compile yourself, setup Code::Blocks as needed and start developing. Its easy! There is also a tutorial in the WiKi.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]