News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Can't link Debugger.dll

Started by MP2E, April 13, 2008, 05:46:04 AM

Previous topic - Next topic

MP2E

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

billyonthemountain

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)

stahta01

To remove the info messages see this post
http://forums.next.codeblocks.org/index.php/topic,8735.0.html

To Fix the errors try this patch.

Tim S


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++.
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]