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

about multiple definitions #355

Open
xuquan316 opened this issue Feb 24, 2024 · 1 comment
Open

about multiple definitions #355

xuquan316 opened this issue Feb 24, 2024 · 1 comment

Comments

@xuquan316
Copy link

A program that will fork a bunch of child processes, the main program will use the coost library, and the child processes will also use the coost library, currently using version 3.0.0, which will report an error at startup:
multiple definitions of flag: hook_log, from /home/coost-3.0.0/src/co/hook.cc and /home/coost-3.0.0/src/co/hook.cc

add 'static' no invalid.
image

How do you solve this problem?

@xuquan316
Copy link
Author

use static library

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

1 participant