News:

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

Main Menu

wxAUI through wxSmith Problems

Started by Omegaclawe, January 04, 2012, 06:18:51 PM

Previous topic - Next topic

Omegaclawe

So... I got wxWidgets' latest stable installed (2.8.12), and am running on the latest Code::Blocks stable (10.05)... or at least, the latest stables since I last checked about a month ago. Anyway, I got all that going, and started playing around with wxSmith. Everything seemed to work as intended.

Then I discovered wxAUI, which did many of the things I really wanted my eventual program to do. However, when I tried to compile a simple test of wxAUI I threw together in wxSmith, I got errors up the wazoo. Simplifying it down to the basic wxSmith Frame construct with a wxAUImanager haphazardly thrown on, I got the following error:

||=== IDE, Debug ===|
obj\Debug\[[filename goes here]].o||In function `[[name]]Frame':|
C:\[[file path goes here]].cpp|66|undefined reference to `_imp___ZN12wxAuiManagerC1EP8wxWindowj'|
||=== Build finished: 1 errors, 0 warnings ===|

I have the thing set up to use DLL's, and have placed the DLL's in the proper location (everything else works), though I get very similar errors for everything related to wxAUI. And only wxAUI. This strikes me as a likely problem with my configuration, but I have no idea where to look. The aui .h files are in their proper locations, Code::Blocks knows where to look for them, etc.

I have not modified the base code created by wxSmith in any way, so I don't feel it necessary to post the files here. Does anybody have any idea what could have gone wrong?

Additional:
Operating system: Windows 7 Ultimate 64x
Compiler: MinGW 4.5.2 (For both wxWidgets and current project)

oBFusCATed

Two possiblities:
1. you have no wxaui in your wxwidgets build (check your setup.h file)
2. you're not linking to the wxaui library if you've build wxwidgets in non-monolithic mode
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Omegaclawe

It was the latter, thanks!

I thought Code::blocks was going to do that for me with the wizard and wot... ah well.