Author Topic: undefined reference in CodeCompletion svn4159  (Read 3361 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2178
undefined reference in CodeCompletion svn4159
« 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: [Select]
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
 

« Last Edit: June 23, 2007, 02:12:41 pm by Pecan »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: undefined reference in CodeCompletion svn4159
« Reply #1 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. :)
Be a part of the solution, not a part of the problem.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2178
Re: undefined reference in CodeCompletion svn4159
« Reply #2 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?
« Last Edit: June 23, 2007, 03:01:22 pm by Pecan »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: undefined reference in CodeCompletion svn4159
« Reply #3 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. :)
Be a part of the solution, not a part of the problem.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: undefined reference in CodeCompletion svn4159
« Reply #4 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.
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 Der Meister

  • Regular
  • ***
  • Posts: 307
Re: undefined reference in CodeCompletion svn4159
« Reply #5 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.
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.