diff --git a/build/bakefiles/common.bkl b/build/bakefiles/common.bkl
index 65906d1ef9..c40caa90bb 100644
--- a/build/bakefiles/common.bkl
+++ b/build/bakefiles/common.bkl
@@ -236,13 +236,13 @@
- wxNO_RTTI
+ wxNO_RTTI
- wxNO_EXCEPTIONS
+ wxNO_EXCEPTIONS
- wxNO_THREADS
+ wxNO_THREADS
@@ -280,6 +280,10 @@
$(NO_VC_CRTDBG)
$(WIN32_WINNT)
+
+
+ $(_ldlibs.replace('ccrtrtti.lib', ''))
+
@@ -520,7 +524,7 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
$(WXDLLNAME)
$(WX_VERSION)
$(WXSOVERSION)
-
+
$(WXMACVERSION_CMD)
diff --git a/include/wx/msw/wince/libraries.h b/include/wx/msw/wince/libraries.h
index 16cd0df928..953e356b84 100644
--- a/include/wx/msw/wince/libraries.h
+++ b/include/wx/msw/wince/libraries.h
@@ -26,6 +26,10 @@
#pragma comment(lib,"commdlg.lib")
#endif
+#if (_WIN32_WCE >= 400) && !defined(wxNO_RTTI)
+ #pragma comment(lib,"ccrtrtti.lib")
+#endif
+
#if defined(__WINCE_STANDARDSDK__)
// DoDragDrop:
#pragma comment(lib,"olece400.lib")