Revision: 73016
          http://sourceforge.net/p/brlcad/code/73016
Author:   starseeker
Date:     2019-05-07 14:09:11 +0000 (Tue, 07 May 2019)
Log Message:
-----------
Doesn't build - init.c doesn't seem to see the pragma and produces a C2341 
error.  (Probably related - for some reason 'read' in the pragma is producing 
an "unexpected identifier '_read'" warning, but not sure why since this is 
common to all the online examples.)  Beyond the build issue, we may have a 
looming problem with VS2015 release builds (which we need) breaking this 
mechanism, based on the glib project's experience with this...

Modified Paths:
--------------
    brlcad/trunk/include/common.h

Modified: brlcad/trunk/include/common.h
===================================================================
--- brlcad/trunk/include/common.h       2019-05-07 13:08:36 UTC (rev 73015)
+++ brlcad/trunk/include/common.h       2019-05-07 14:09:11 UTC (rev 73016)
@@ -390,6 +390,16 @@
         struct lib##_t_ { lib##_t_(void) { lib(); } }; static lib##_t_ lib##_; 
\
         static void lib(void)
 #elif defined(_MSC_VER)
+
+/* TODO - below code is not building on Visual Studio 2015.  We may also have
+ * some issues with this in 2015 optimized builds.  See:
+ *
+ * https://bugzilla.gnome.org/show_bug.cgi?id=752837
+ * https://github.com/GNOME/glib/blob/master/glib/gconstructor.h
+ *
+ * for what the glib folks had to go through, and even after all that they had
+ * to leave their static build broken on Windows... */
+
 #  pragma section(".CRT$XCU",read)
 #  define INITIALIZE_MSVC(lib, p) \
         static void lib(void); \

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to