I have written c program, Which has 3 file(.c ) , Main program has
two threads and one file has mysql connection function, One file has
thread functions definition. I don't know how to compile all these
codes, Normally I tried like this, 

```
cc -pthread main.c 

```

But if I compile like this I am getting error called mysql functions
are undefined But I have written thread as separate program and
mysql as separate program and complied individually , it complied
successfully and I got output. So please help me to compile my
project File names are,

`main.c` (2 threads are declared) `functions.c` (thread function
definition, and mysql func declared) `db.c` ( mysql function
definition)

please help to compile my code?