Hi
i tried to include the header file as precompiled in a cmake file, but the linker is not happy, with endless stream of: ld.lld: error: duplicate symbol: xxxxx
I used the directive: target_precompile_headers(${EXEC_NAME} PRIVATE easy_memory.h)
With the above directive, cmake will force-include the header into every file.
I glanced over your header and you seem to have the right guardrails in there like extern and inlines etc...
Have you tried to use your header as precombiled header before?
Hi
i tried to include the header file as precompiled in a cmake file, but the linker is not happy, with endless stream of: ld.lld: error: duplicate symbol: xxxxx
I used the directive:
target_precompile_headers(${EXEC_NAME} PRIVATE easy_memory.h)With the above directive, cmake will force-include the header into every file.
I glanced over your header and you seem to have the right guardrails in there like extern and inlines etc...
Have you tried to use your header as precombiled header before?