Skip to content

Duplicate symbol #7

Closed
Closed

Description

@iliocatallo

Hi,

If I try to include ThreadPool.h in in different source files in my project, the linker starts complaining about duplicate symbols. I'm using XCode 4.6.1 (clang 4.2).

Thanks.

Activity

  1. progschj commented on Apr 4, 2013

    @progschj
    Owner

    I assume all the nontemplate members need to be put in a cpp file for that to work. Alternatively we could think of an excuse to make ThreadPool a template itself :D (like having a scheduling policy parameter).

  2. iliocatallo commented on Apr 4, 2013

    @iliocatallo
    Author

    So, if I got it right, it is sufficient to move all non-tempalate members in a hypothetical ThreadPool.cpp file. I'll try ASAP ;)

  3. progschj commented on Apr 5, 2013

    @progschj
    Owner

    I fixed this on the develop branch by declaring the nontemplates inline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions