Author Topic: Found fix for "Info: resolving" messages in Building Code::Blocks  (Read 5261 times)

Online stahta01

  • Lives here!
  • ****
  • Posts: 7103
    • My Best Post
FYI:
I have found how to stop the info notes.

Add extra linker option "-Wl,--enable-auto-import"

Tim S

Some of the messages stopped
Code
||=== Code::Blocks, src ===|
||Info: resolving _nullptr by linking to __imp__nullptr |
||Info: resolving Mgr<LogManager>::instance        by linking to __imp___ZN3MgrI10LogManagerE8instanceE |
||Info: resolving Mgr<LogManager>::isShutdown         by linking to __imp___ZN3MgrI10LogManagerE10isShutdownE |
||Info: resolving SquirrelVM::_VM       by linking to __imp___ZN10SquirrelVM3_VME |
||Info: resolving Mgr<TemplateManager>::instance        by linking to __imp___ZN3MgrI15TemplateManagerE8instanceE |
||Info: resolving Mgr<TemplateManager>::isShutdown         by linking to __imp___ZN3MgrI15TemplateManagerE10isShutdownE |
||=== Code::Blocks, Compiler ===|
||Info: resolving SquirrelVM::_VM       by linking to __imp___ZN10SquirrelVM3_VME |
||=== Code::Blocks, Debugger ===|
||Info: resolving SquirrelVM::_VM       by linking to __imp___ZN10SquirrelVM3_VME |
||=== Code::Blocks, Scripted wizard ===|
||Info: resolving SquirrelVM::_VM       by linking to __imp___ZN10SquirrelVM3_VME |
||=== Code::Blocks, Projects-workspaces importer ===|
||Info: resolving vtable for TiXmlDocumentby linking to __imp___ZTV13TiXmlDocument |
||Info: resolving TiXmlString::nullrep_       by linking to __imp___ZN11TiXmlString8nullrep_E |
||=== Build finished: 0 errors, 11 warnings ===|

Patch Below.

Code
Index: src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp
===================================================================
--- src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp (revision 5106)
+++ src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp (working copy)
@@ -52,6 +51,7 @@
  <Add directory="wxthings\wxthings\include" />
  </Compiler>
  <Linker>
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="wxsmithlib" />
  <Add library="codeblocks" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
Index: src/plugins/contrib/wxSmith/wxSmith.cbp
===================================================================
--- src/plugins/contrib/wxSmith/wxSmith.cbp (revision 5106)
+++ src/plugins/contrib/wxSmith/wxSmith.cbp (working copy)
@@ -82,6 +81,7 @@
  <Add option="-Wl,--enable-auto-image-base" />
  <Add option="-Wl,--export-all-symbols" />
  <Add option="-Wl,--add-stdcall-alias" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="txml" />
  <Add library="propgrid" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
Index: src/plugins/contrib/lib_finder/lib_finder.cbp
===================================================================
--- src/plugins/contrib/lib_finder/lib_finder.cbp (revision 5106)
+++ src/plugins/contrib/lib_finder/lib_finder.cbp (working copy)
@@ -55,6 +55,7 @@
  <Add directory="$(#WX.include)" />
  </ResourceCompiler>
  <Linker>
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
  <Add library="txml" />
  <Add library="codeblocks" />
Index: src/plugins/contrib/BrowseTracker/BrowseTracker.cbp
===================================================================
--- src/plugins/contrib/BrowseTracker/BrowseTracker.cbp (revision 5106)
+++ src/plugins/contrib/BrowseTracker/BrowseTracker.cbp (working copy)
@@ -35,6 +35,7 @@
  </Compiler>
  <Linker>
  <Add option="-s" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
  <Add library="libwxscintilla.a" />
  <Add library="codeblocks" />
Index: src/plugins/contrib/AutoVersioning/AutoVersioning.cbp
===================================================================
--- src/plugins/contrib/AutoVersioning/AutoVersioning.cbp (revision 5106)
+++ src/plugins/contrib/AutoVersioning/AutoVersioning.cbp (working copy)
@@ -33,6 +33,7 @@
  <Add directory="$(#WX.lib)\gcc_dll$(WX_CFG)\msw$(WX_SUFFIX)" />
  </Compiler>
  <Linker>
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
  <Add library="codeblocks" />
  <Add directory="$(#CB)\devel" />
Index: src/plugins/contrib/help_plugin/help-plugin.cbp
===================================================================
--- src/plugins/contrib/help_plugin/help-plugin.cbp (revision 5106)
+++ src/plugins/contrib/help_plugin/help-plugin.cbp (working copy)
@@ -81,6 +80,7 @@
  <Linker>
  <Add option="-Wl,--enable-auto-image-base" />
  <Add option="-Wl,--add-stdcall-alias" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
  <Add library="codeblocks" />
  <Add library="wxscintilla" />
Index: src/CodeBlocks.cbp
===================================================================
--- src/CodeBlocks.cbp (revision 5106)
+++ src/CodeBlocks.cbp (working copy)
@@ -196,6 +196,7 @@
  <Add directory="include\scripting\sqplus" />
  </Compiler>
  <Linker>
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="libcodeblocks.a" />
  <Add library="wxaui" />
  <Add library="libwxscintilla.a" />
@@ -266,6 +267,7 @@
  <Linker>
  <Add option="-Wl,--enable-auto-image-base" />
  <Add option="-Wl,--add-stdcall-alias" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="libcodeblocks.a" />
  <Add library="libwxscintilla.a" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
@@ -291,6 +293,7 @@
  <Linker>
  <Add option="-Wl,--enable-auto-image-base" />
  <Add option="-Wl,--add-stdcall-alias" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="libcodeblocks.a" />
  <Add library="libwxscintilla.a" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
@@ -393,6 +395,7 @@
  <Linker>
  <Add option="-Wl,--enable-auto-image-base" />
  <Add option="-Wl,--add-stdcall-alias" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="libcodeblocks.a" />
  <Add library="libwxscintilla.a" />
  <Add directory="devel" />
@@ -465,6 +468,7 @@
  <Linker>
  <Add option="-Wl,--enable-auto-image-base" />
  <Add option="-Wl,--add-stdcall-alias" />
+ <Add option="-Wl,--enable-auto-import" />
  <Add library="codeblocks" />
  <Add library="wxmsw28$(WX_SUFFIX)" />
  <Add directory="devel" />
« Last Edit: July 04, 2008, 03:46:26 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org