On Thu, Nov 21, 2013 at 9:25 AM, Subramanya Sadasiva <[email protected]> wrote: > Hi All, > i get the following error while building libmesh with the macports version of > gcc-4.8 on OSX 10.9 but only in the optimized version. The debug version > compiles without any trouble. Is tehre a work around for this? > > n file included from /opt/local/include/gcc48/c++/cstring:42:0, > from ./include/libmesh/dense_matrix.h:30, > from ./include/libmesh/diff_context.h:24, > from ./include/libmesh/fem_context.h:24, > from ./include/libmesh/fem_function_base.h:31, > from ./include/libmesh/system.h:36, > from src/mesh/exodusII_io_helper.C:30: > /usr/include/string.h:145:1: error: 'errno_t' does not name a type > errno_t memset_s(void *, rsize_t, int, rsize_t) > __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0)
This looks like some internal inconsistency with the compiler to me. memset_s is not a function we call, I suspect it is called indirectly by calling memset. As a workaround, try not including <cstring> in dense_matrix.h, and replace the call to memset with that file with: std::fill (_val.begin(), _val.end(), 0.); instead. -- John ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
