coost icon indicating copy to clipboard operation
coost copied to clipboard

about multiple definitions

Open xuquan316 opened this issue 1 year ago • 1 comments

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 avatar Feb 24 '24 15:02 xuquan316

use static library

xuquan316 avatar Feb 24 '24 16:02 xuquan316