Skip to content

precompiled header issue with cmake #16

Description

@usergoodvery

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions