easy_profiler icon indicating copy to clipboard operation
easy_profiler copied to clipboard

Profiler API common function names conflict with other libraries

Open kevswims opened this issue 5 months ago • 0 comments

Since the core API in https://github.com/yse/easy_profiler/blob/develop/easy_profiler_core/include/easy/profiler.h is inside an extern "C" block, any functions declared that match the function names of another library will cause linking to fail.

In our particular case, the now and version functions are conflicting with the same functions in libsystemd.

There is a PR here https://github.com/yse/easy_profiler/pull/188 that covers some of these functions but not the now() function.

The posted PR looks like it would fix our issues if the now() function was also renamed. Is there anything blocking that PR or another approach that should be taken to fix this?

kevswims avatar Aug 26 '24 20:08 kevswims