Hello,

I've been playing around with creating a cmake based build for the libraries and stumbled over a little problem when running the generators (eLut.cpp, toFloat.cpp) under Windows from a build rule:
the generated eLut.h was empty.
Attached patch fixes the problem for me, by flushing cout at the end of the program [1].

        Cheers,
                Carsten

[1] I don't know if the C++ runtime is supposed to do this automatically, but it seems not to do it on my system (Windows 7, 64 bit, VS 2010).
--- Half/eLut.cpp~	2006-12-08 16:23:08.000000000 -0600
+++ Half/eLut.cpp	2012-02-23 18:02:35.137840023 -0600
@@ -109,6 +109,6 @@
 	}
     }
 
-    cout << "};\n";
+    cout << "};\n" << flush;
     return 0;
 }
--- Half/toFloat.cpp~	2006-12-08 16:23:08.000000000 -0600
+++ Half/toFloat.cpp	2012-02-23 18:02:28.162747159 -0600
@@ -159,6 +159,6 @@
 	}
     }
 
-    cout << "};\n";
+    cout << "};\n" << flush;
     return 0;
 }
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to