On Wed, 23 Nov 2016, Michael Povolotskyi wrote: > I found the flag: > it is -DNDEBUG > apparently I need to add use it I compile my application in optimized mode.
Possibly, but this seems very doubtful. Turning off assertions doesn't mean your code is correct, it just means that we stop checking your code. Accessing index 0 in a 0-length vector would still sometimes segfault, but would more likely silenty return garbage. > You need code in the header files because of the templates, right? And inlinable functions. But more importantly, function declarations and structure layouts. Those are part of what defines the ABI, even when the function definitions aren't there. --- Roy ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users