Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

undefined reference in CodeCompletion svn4159

(1/2) > >>

Pecan:
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
 


--- End code ---

Biplab:
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. :)

Pecan:
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?

Biplab:
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. :)

MortenMacFly:

--- Quote from: Pecan on June 23, 2007, 02:58:07 pm ---If I check 'em locally, an SVN update will then uncheck 'em, won't it?

--- End quote ---
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.

Navigation

[0] Message Index

[#] Next page

Go to full version