News:

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

Main Menu

Compiler Error C::B build 7251 - undefined reference _imp_cb_EVT_

Started by ice031, June 24, 2011, 06:59:40 AM

Previous topic - Next topic

ice031

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

MortenMacFly

Quote from: ice031 on June 24, 2011, 06:59:40 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ouch

no, don't do that.

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

oBFusCATed

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!]

ouch

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.

stahta01

Quote from: ouch on June 24, 2011, 05:37:35 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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

ouch

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)