Page 1 of 1

build in Debug mode

Posted: Sun Feb 14, 2016 12:49 pm
by sam
Hi Guys,

I am trying to compile OpenMM in Debug mode. However in my target lib directory I only see:

../openmm/lib/libOpenMM.so

I was expecting to see a _d suffix like this::

../openmm/lib/libOpenMM_d.so


I don't see that CMakeLists calls for this suffix to be added. Should I treat ../openmm/lib/libOpenMM.so as a debug binary? It crashes my code if I do that actually.

Thanks

Sam

Re: build in Debug mode

Posted: Sun Feb 14, 2016 1:30 pm
by jswails1
Yes, _d suffixes were removed a long time ago. Here is the issue where debug library naming was brought up as a question: https://github.com/pandegroup/openmm/issues/398 and then the PR that changed this behavior: https://github.com/pandegroup/openmm/pull/408

When you compile in Debug mode, what that does is build the standard libraries with debug symbols (and, I believe, reduced optimization).

Re: build in Debug mode

Posted: Sun Feb 14, 2016 3:17 pm
by peastman
Where are you getting a crash? On Linux (which I gather you're using), debug and release code should be binary compatible with each other.

Peter