Code::Blocks Forums

User forums => Help => Topic started by: ice031 on June 24, 2011, 06:59:40 am

Title: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: ice031 on June 24, 2011, 06:59:40 am
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
Title: Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: MortenMacFly 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.
Title: Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: ouch on June 24, 2011, 05:27:08 pm
no, don't do that.

Just delete the devel folder in the base directory and rebuild.
Title: Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: oBFusCATed 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.
Title: Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: ouch 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.
Title: Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: stahta01 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.
Title: Re: Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_
Post by: ouch 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)