diff --git a/IOStream.cxx b/IOStream.cxx
index e43610380bc3fc1ef18ffda8c9c3ee4f7a13c1c5..f84453fa2c55b3565a286b490813dbb55cab7926 100644
--- a/IOStream.cxx
+++ b/IOStream.cxx
@@ -267,4 +267,17 @@ kwsys_ios::ostream& IOStreamPrint(kwsys_ios::ostream& os, IOStreamULL value)
 
 } // namespace KWSYS_NAMESPACE
 
+#else
+
+namespace KWSYS_NAMESPACE
+{
+
+// Create one public symbol in this object file to avoid warnings from
+// archivers.
+void IOStreamSymbolToAvoidWarning()
+{
+}
+
+} // namespace KWSYS_NAMESPACE
+
 #endif // KWSYS_IOS_NEED_OPERATORS_LL