I solved the problem. Both inside the yml file(see the change logs of the above file) and the C::B source code(see patch below).
diff --git a/src/plugins/contrib/source_exporter/Makefile.am b/src/plugins/contrib/source_exporter/Makefile.am
index 45b3580..269670d 100644
--- a/src/plugins/contrib/source_exporter/Makefile.am
+++ b/src/plugins/contrib/source_exporter/Makefile.am
@@ -20,6 +20,8 @@ libexporter_la_LIBADD = ../../../sdk/libcodeblocks.la \
if ! CODEBLOCKS_NT
libexporter_la_LIBADD += $(CB_TINYXML_LIBS)
+else
+libexporter_la_LIBADD += -lgdi32
endif
libexporter_la_SOURCES = BaseExporter.cpp \
and
diff --git a/src/plugins/contrib/debugger_gdbmi/Makefile.am b/src/plugins/contrib/debugger_gdbmi/Makefile.am
index 509b253..b3d2405 100644
--- a/src/plugins/contrib/debugger_gdbmi/Makefile.am
+++ b/src/plugins/contrib/debugger_gdbmi/Makefile.am
@@ -22,11 +22,10 @@ libdebugger_gdbmi_la_LDFLAGS = \
libdebugger_gdbmi_la_LIBADD = \
../../../sdk/libcodeblocks.la \
- $(CB_TINYXML_LIBS) \
$(WX_LIBS)
if ! CODEBLOCKS_NT
-libdebugger_gdbmi_la_LIBADD += -lutil
+libdebugger_gdbmi_la_LIBADD += -lutil $(CB_TINYXML_LIBS)
endif
libdebugger_gdbmi_la_SOURCES = \