Firstly apologies if this is a silly question, but I am quite new to C programming.
All the C I've done has been on Ubuntu, and I'm now attempting to compile a C program on Windows (in console mode) which will connect to a MySQL database. The program works ok but it needs libmysql.dll, so if I were to run the program on another machine I'd need to take that file also.
Considering my program is about 10k it seems ridiculous to carry over a 2 meg library file just so it will run. This is by no means a criticism of Windows as of course Linux has it's libraries too. But my question is:
Is there a way to embed or include the DLL (or it's useful components) into my program at compilation time so I only have one file to distribute?
Thanks for any advice