Author Topic: Bakefile / '_imp___Z...' Error  (Read 6716 times)

Offline Linuxx

  • Multiple posting newcomer
  • *
  • Posts: 17
Bakefile / '_imp___Z...' Error
« on: December 20, 2010, 10:49:34 am »
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
 

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Bakefile / '_imp___Z...' Error
« Reply #1 on: December 20, 2010, 11:13:06 am »
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.

Offline Linuxx

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Bakefile / '_imp___Z...' Error
« Reply #2 on: December 20, 2010, 11:23:32 am »
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
 

Offline Linuxx

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Bakefile / '_imp___Z...' Error
« Reply #3 on: December 20, 2010, 01:41:10 pm »
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...

Offline Linuxx

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Bakefile / '_imp___Z...' Error
« Reply #4 on: December 20, 2010, 03:57:39 pm »
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
 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: Bakefile / '_imp___Z...' Error
« Reply #5 on: December 21, 2010, 07:11:09 pm »
This isn't mentioned in the wxPack release notes.

The above is NOT true. if you read the complete release notes you will see where they changed the version of MinGW used.

From http://wxpack.sourceforge.net/Main/ReleaseNotes
Quote
12/10/2009 Version 2.8.10.04

    * ^ wxWidgets v2.8.10
    * ^ wxFormBuilder v3.1.63-beta
    * ^ wxAdditions v2.8.10.01 (Built against wxWidget v2.8.10)
    * ^ wxVC v2.8.10.01. (Built against wxWidget v2.8.10)
    * + Added GCC v4.4.1-dw2 compiled libraries.
    * - Removed Gcc 4.3.2-sjlj compiled libraries

The site I recommend getting MinGW-Like GCC from http://sourceforge.net/projects/tdm-gcc/
Note: I do NOT see an simple installer for  GCC v4.4.1-dw2 any longer on the site; that means it is likely too hard for you to do it.
wxPACK had link to 4.4.1 http://prdownloads.sourceforge.net/wxpack/MinGW_v4.4.1-tdm_dw2-05.exe?download
Note: You still NEED to understand what a compiler/linker does in order to be a C/C++ Programmer; THIS is NOT a site that teaches programming!

Tim S.
« Last Edit: December 21, 2010, 07:49:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Linuxx

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Bakefile / '_imp___Z...' Error
« Reply #6 on: December 22, 2010, 09:44:40 am »
Hi Tim S.

Yes you’re right, they do mention the MinGW version somewhere down the line. Just wasn’t sure if they change something along with the development of the pack, without mentioning it. And since the compiler version seems to be an issue of vast importance, I had assumed that they’d mention it every time in the release notes, not just when they change it. Anyhow... I know now, so thanks for that one.

Tim, I must admit, I am quite afraid of posting questions in this forum, because I always seem to be close to getting told of for something I do wrong. On one hand, forums are the place to get good help from experienced people, on the other hand they appear to be places where people hide behind a pseudonym, without anybody knowing who they are, which puts them in a rather safe position when it comes to letting inexperienced users know that they are not exactly bright... (not to use the term “idiots”).

It might help telling people what to do and where to look for solutions instead of using all those NOTs, DON’Ts and WRONGs (that’s how I try to raise my children – they are never afraid of asking questions). In my opinion there’s two ways of handling an annoying thread: 1. Politely show the right direction and 2. Just ignore it. Obviously my opinion isn’t the only one...

Nevertheless, I thank you very much for your inputs (I really mean this)! My problem with the errors was solved by digging deeper into the issue and tidying up the paths to the libraries. Guess you know that sometimes it isn’t that easy for a newbie to understand when to use _lib and when to use  _dll. And being a newbie is where we all start, isn't it...


Oli

 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: Bakefile / '_imp___Z...' Error
« Reply #7 on: December 22, 2010, 02:55:54 pm »
Read the Wiki
http://wiki.codeblocks.org/index.php?title=FAQ

Post your programing questions on a site that supports programming; example cboard.
Learn to Google!!!!!

Tim S.


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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7789
    • My Best Post
Re: Bakefile / '_imp___Z...' Error
« Reply #8 on: December 22, 2010, 03:01:08 pm »

It might help telling people what to do and where to look for solutions instead of using all those NOTs, DON’Ts and WRONGs (that’s how I try to raise my children – they are never afraid of asking questions). In my opinion there’s two ways of handling an annoying thread: 1. Politely show the right direction and 2. Just ignore it. Obviously my opinion isn’t the only one...
 

So when your kid asked a question you have no idea what the right answer is; you make one up?; you never tell him/her to learn on their own or use books or Google the answer.
Unless your kids are under 12; you are being a very bad parent. You need to teach them to solve their own problems.

Tim S.

PS: We are NOT your parents; This site IS NOT a C/C++ Language help site; it supports using Code::Blocks in programming C/C++.
« Last Edit: December 22, 2010, 03:10:37 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Linuxx

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Bakefile / '_imp___Z...' Error
« Reply #9 on: December 22, 2010, 03:38:58 pm »
Thanks. I'll ignore your polite comments... Please consider this thread as being closed...

Oli
« Last Edit: December 22, 2010, 03:40:48 pm by Linuxx »