kr / ct

(Relatively) Easy Unit Testing in C
MIT License
72 stars 16 forks source link

using pthread issue #2

Closed BohuTANG closed 13 years ago

BohuTANG commented 13 years ago

Hi,if the code using "pthread_create" method,using tc to make ,will occus "undefined reference to `pthread_create'",where to add " -pthread"?

kr commented 13 years ago

Many projects put that in the makefile, in a variable called LDLIBS. Actually, you're free to set up your build system however you like; the makefile in this repo is only a tiny example to give the idea. Since there's so much variety in how people build their programs, it's not possible for me to give instructions that work for any situation.