Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate symbol #7

Closed
iliocatallo opened this issue Apr 4, 2013 · 3 comments
Closed

Duplicate symbol #7

iliocatallo opened this issue Apr 4, 2013 · 3 comments

Comments

@iliocatallo
Copy link

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.

@progschj
Copy link
Owner

progschj commented Apr 4, 2013

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).

@iliocatallo
Copy link
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 ;)

@progschj
Copy link
Owner

progschj commented Apr 5, 2013

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants