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
build in Debug mode
- Jason Swails
- Posts: 47
- Joined: Mon Jan 07, 2013 5:11 pm
Re: build in Debug mode
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).
When you compile in Debug mode, what that does is build the standard libraries with debug symbols (and, I believe, reduced optimization).
- Peter Eastman
- Posts: 2593
- Joined: Thu Aug 09, 2007 1:25 pm
Re: build in Debug mode
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
Peter