Author Topic: Can't link Debugger.dll  (Read 10985 times)

Offline MP2E

  • Multiple posting newcomer
  • *
  • Posts: 10
Can't link Debugger.dll
« on: April 13, 2008, 05:46:04 am »
Well, this hasn't worked for awhile, so it's nothing new, but when I compile Code::Blocks using GCC 4.3.0-tdm2. I get this error:
Code
Linking dynamic library: devel\share\CodeBlocks\plugins\debugger.dll
c:/mingw-tdm/bin/../lib/gcc/mingw32/4.3.0/../../../../bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
Info: resolving SquirrelVM::_VM       by linking to __imp___ZN10SquirrelVM3_VME (auto-import)
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs..objs\plugins\debuggergdb\debuggergdb.o:debuggergdb.cpp:(.text$_ZN18ProjectLoaderHooks11HookFunctorI11DebuggerGDBEC1EPS1_MS1_FvP9cbProjectP12TiXmlElementbE[ProjectLoaderHooks::HookFunctor<DebuggerGDB>::HookFunctor(DebuggerGDB*, void (DebuggerGDB::*)(cbProject*, TiXmlElement*, bool))]+0x12): undefined reference to `__imp___ZTVN18ProjectLoaderHooks11HookFunctorI11DebuggerGDBEE'
collect2: ld returned 1 exit status
Process terminated with status 1 (22 minutes, 11 seconds)
1 errors, 37 warnings
« Last Edit: April 13, 2008, 06:04:19 am by MP2E »

Offline billyonthemountain

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: Can't link Debugger.dll
« Reply #1 on: June 21, 2008, 01:07:37 pm »
Same problem here. This time using TDM-3 and Vista. wx and cb without any optimizations enabled (everything set to default).
(ASM, C/C++)||(VISION&AI)||(EMBEDDED SYSTEMS)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7665
    • My Best Post
Re: Can't link Debugger.dll
« Reply #2 on: July 04, 2008, 05:07:07 am »
To remove the info messages see this post
http://forums.codeblocks.org/index.php/topic,8735.0.html

To Fix the errors try this patch.

Tim S

Code
Index: src/include/projectloader_hooks.h
===================================================================
--- src/include/projectloader_hooks.h (revision 5106)
+++ src/include/projectloader_hooks.h (working copy)
@@ -40,7 +40,7 @@
       * The isLoading argument is true if your hook is called when the project is being loaded,
       * and false when the project is saved.
       */
-    template<class T> class DLLIMPORT HookFunctor : public HookFunctorBase
+    template<class T> class HookFunctor : public HookFunctorBase
     {
         public:
             typedef void (T::*Func)(cbProject*, TiXmlElement*, bool);
Index: src/include/editor_hooks.h
===================================================================
--- src/include/editor_hooks.h (revision 5106)
+++ src/include/editor_hooks.h (working copy)
@@ -40,7 +40,7 @@
       * The isLoading argument is true if your hook is called when the project is being loaded,
       * and false when the project is saved.
       */
-    template<class T> class DLLIMPORT HookFunctor : public HookFunctorBase
+    template<class T> class HookFunctor : public HookFunctorBase
     {
         public:
             typedef void (T::*Func)(cbEditor*, wxScintillaEvent&);
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org