Author Topic: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_  (Read 4856 times)

ice031

  • Guest
Hello I am trying to compile Code::Blocks Build 7251 and I receive the following error:

||=== Code::Blocks, src ===|
.objs\src\main.o:C:\codeblocks_head\trunk\src\src\main.cpp|1072|undefined reference to `_imp__cbEVT_PLUGIN_LOADING_COMPLETE'|
||=== Build finished: 1 errors, 0 warnings (2 minutes, 55 seconds) ===|

Using:
tdm-gcc ver. 4.5.2
wxWidgets-2.8.12

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9615
Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
« Reply #1 on: June 24, 2011, 07:15:02 am »
||=== Code::Blocks, src ===|
.objs\src\main.o:C:\codeblocks_head\trunk\src\src\main.cpp|1072|undefined reference to `_imp__cbEVT_PLUGIN_LOADING_COMPLETE'|
||=== Build finished: 1 errors, 0 warnings (2 minutes, 55 seconds) ===|
We had this discussion already. Make sure you do a full "clean" (especially take care of the PCH files) before re-build. If unsure, do a clean, new SVN checkout, having deleted the old one before.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
« Reply #2 on: June 24, 2011, 05:27:08 pm »
no, don't do that.

Just delete the devel folder in the base directory and rebuild.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
« Reply #3 on: June 24, 2011, 05:32:17 pm »
outh: the pch (gch in fact) are not in the devel directory, but in the include directory! So your advice is incomplete.
(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!]

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
« Reply #4 on: June 24, 2011, 05:37:35 pm »
the pch files are not the problem, it's trying to link to an old library that doesn't get cleaned in the devel directory. I already went through this myself.

which is actually in the /src directory not the base one, my bad.

also, rebuilding runs a clean which auto deletes the pch files in the include directory.
« Last Edit: June 24, 2011, 05:39:22 pm by ouch »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7178
    • My Best Post
Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
« Reply #5 on: June 24, 2011, 07:49:58 pm »
also, rebuilding runs a clean which auto deletes the pch files in the include directory.

Have you verified the above; because I think it does not happen.
(At least on windows)

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
« Reply #6 on: June 24, 2011, 08:35:39 pm »
I can verify the pch files (gch) do get deleted on a clean in win7 64bit svn version 7249 of codeblocks using tdm mingw 4.5.2. (just did it to make sure)