User forums > Using Code::Blocks
Bakefile / '_imp___Z...' Error
Linuxx:
Hi Everyone!
When trying to build a wxWidgets project in CB, I keep getting loads of errors saying something like '_imp___ZN12wxAppConsole...' and many more that are of a similar shape. From what I found during my web search, it looks like it has something to do with bakefile. I downloaded and installed bakefile and tried it out as per the bakefile quickstart guide (http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/build/bakefiles/wxpresets/bakefile_quickstart.txt?view=co). It generates this makefile.gcc (I’m using MinGW, not MSVC like in the tutorial), so it seems to be working. However, I don’t get any further than this and I haven’t a cocking clue how to use bakefile together with CB. Can anyone please help me cut the Gordian knot? Your support will be highly appreciated!
Thanks!!!
Oli
Jenna:
You definitely don't need bakefiles to use wxWidgets with C::B.
Read this wiki-article: http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef.
It should help you to set up wxWidgets for C::B on windows correctly.
Linuxx:
OK, thanks! It looks like my issue is related to: "wxWidgets was built with a different version of GCC".
I'll work on this and give feedback...
Oli
Linuxx:
Downloaded wxPack 2.8.11.02. Now, how do I know which GCC version wxWidgets was built with? This isn't mentioned in the wxPack release notes. Looks like I have to install CB without the MinGW extension and then install the corresponding compiler... Correct...? Anyhow, the mentioned wxPack, together with the codeblocks-10.05mingw release doesn't work; it generates the above mentioned errors. Perhaps it is important to mention that I am using wxWidgets Additions too in my sample project...
Linuxx:
Hi Again!
This thing is driving me crazy! I think it might not only be my fault... Yes, I may be new to CB and wxWidgets etc, but I don't think I'm an idiot. Tried installing wxPack 2.8.8.04 and started from scratch with my test application. Everything works until I start using wxAdditions (wxPlotCtrl in particular). That's when these errors started coming up again. First I get one saying that the plotctrl.h cannot be found (solution under this thread: http://forums.codeblocks.org/index.php/topic,13880.new.html#new), then I get an error saying that wxMessageBox was not declared (solution here: http://blog.melvinrook.nl/2009/02/20/using-wxformbuilder-with-codeblocks-on-mandriva-2009/ - why is this not working, while everything else works??? Suppose this is a bug...) and then i get the one this thread is about.
Please don't get me wrong, this aint against anybody and I highly appreciate your inputs! It's just extremely frustrating to be stuck and not knowing why - suppose you've all gone through this... Can someone share his / her experience on this error?
Oli
Navigation
[0] Message Index
[#] Next page
Go to full version