[Linker error] undefined reference to `mysql_init@4'

I got a lot of these errors depending on what mysql function I'm calling. Is there any way to fix this? I'm calling the right header file and I'm using Dec-C++. Any help is apprecaited.