Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Pecan on June 23, 2007, 02:06:16 pm

Title: undefined reference in CodeCompletion svn4159
Post by: Pecan on June 23, 2007, 02:06:16 pm
XpSp2 wxWidgets 2.8.4
SVN 4159
g++ (GCC) 3.4.4 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.

Code
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN  -Iinclude -Iinclude\wxFlatNotebook\include -IC:\Usr\Proj\wxWidgets284\include -IC:\Usr\Proj\wxWidgets284\lib\gcc_dll\mswu -Iinclude\wxscintilla\include -Iinclude\propgrid\include -Iinclude\tinyxml -IC:\MinGW\include  -c c:\Usr\Proj\cbBeta\trunk\src\plugins\codecompletion\parser\tokenizer.cpp -o .objs\plugins\codecompletion\parser\tokenizer.o
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DTIXML_USE_STL -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBUILDING_PLUGIN  -Iinclude -Iinclude\wxFlatNotebook\include -IC:\Usr\Proj\wxWidgets284\include -IC:\Usr\Proj\wxWidgets284\lib\gcc_dll\mswu -Iinclude\wxscintilla\include -Iinclude\propgrid\include -Iinclude\tinyxml -IC:\MinGW\include  -c c:\Usr\Proj\cbBeta\trunk\src\plugins\codecompletion\selectincludefile.cpp -o .objs\plugins\codecompletion\selectincludefile.o
mingw32-g++.exe -shared   -Wl,--dll -Ldevel -Lbase\tinyxml -LC:\Usr\Proj\wxWidgets284\lib\gcc_dll -LC:\MinGW\lib  .objs\plugins\codecompletion\ccdebuginfo.o .objs\plugins\codecompletion\ccoptionsdlg.o .objs\plugins\codecompletion\ccoptionsprjdlg.o .objs\plugins\codecompletion\classbrowser.o .objs\plugins\codecompletion\classbrowserbuilderthread.o .objs\plugins\codecompletion\codecompletion.o .objs\plugins\codecompletion\insertclassmethoddlg.o .objs\plugins\codecompletion\nativeparser.o .objs\plugins\codecompletion\parser\parser.o .objs\plugins\codecompletion\parser\parserthread.o .objs\plugins\codecompletion\parser\searchtree.o .objs\plugins\codecompletion\parser\token.o .objs\plugins\codecompletion\parser\tokenizer.o .objs\plugins\codecompletion\selectincludefile.o   -o devel\share\CodeBlocks\plugins\codecompletion.dll -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias  -lcodeblocks -lwxscintilla -lwxmsw28u
.objs\plugins\codecompletion\codecompletion.o: In function `ZN14CodeCompletion17OnEditorActivatedER15CodeBlocksEvent':
c:/Usr/Proj/cbBeta/trunk/src/plugins/codecompletion/codecompletion.cpp:1244: undefined reference to `_imp___ZN14ProjectManager6IsBusyEv'
collect2: ld returned 1 exit status
Process terminated with status 1 (6 minutes, 29 seconds)
1 errors, 3 warnings
 

Title: Re: undefined reference in CodeCompletion svn4159
Post by: Biplab on June 23, 2007, 02:32:02 pm
First, clean the SDK target.

Then, go through Project > Build options > Build targets. Now select SDK target and check for the following options on the right.

1) Auto-generate filename prefix.
2) Auto-generate filename extension.

If they are unchecked check them and now build C::B. Now it should link properly. :)
Title: Re: undefined reference in CodeCompletion svn4159
Post by: Pecan on June 23, 2007, 02:58:07 pm
uh.. that did it, ok

but shouldn't those checks already be in the .cbp file?

If I check 'em locally, an SVN update will then uncheck 'em, won't it?
Title: Re: undefined reference in CodeCompletion svn4159
Post by: Biplab on June 23, 2007, 03:58:51 pm
That shouldn't be a problem anymore if your base C::B Rev is > 4144. A fix has been applied in Rev 4144 to tackle this issue.

But those options should be checked in the official C::B project file for proper compilation. :)
Title: Re: undefined reference in CodeCompletion svn4159
Post by: MortenMacFly on June 23, 2007, 05:01:54 pm
If I check 'em locally, an SVN update will then uncheck 'em, won't it?
If you have a modified cbp file (unchecked items) SVN won't touch that on SVN update. You would have to do a SVN checkout over an existing sandbox with then. SVN never touches any modified files in your sandbox, even if the repository is newer. Even if you do another checkout it will make a copy of the modified file before the file is replaced with the SVN version. Trust SVN - you won't loose modified code... ;-)
With regards, Morten.
Title: Re: undefined reference in CodeCompletion svn4159
Post by: Der Meister on June 23, 2007, 05:50:16 pm
SVN never touches any modified files in your sandbox, even if the repository is newer.
Actually it touches every file from you working copy which is older than the copy in the repository. But it does not replace the file, it just merges them. Therefore you get an up-to-date version plus your modification. Unless there is a conflict between the update and your modification you won't be bothered about it by svn.