I'm new in C language programing, and i'm working in an Mac OS enverimont!
I'm testing a code, that takes the current hostname from machine and send it to an MySql database. In my computer it works!
I tried to execute the complied program at another computer, and i got the error: Library not loaded '/usr/local/opt/mysql/lib/libmysqlclient.21.dylib' (no such file)...
I belive that if i install the mysql at this computer (brew install mysql) should solve the problem, but i would like to know if is it possible to export dylib with the compiled program, is it possible? What is the best pratices when the program work with dylibs that are not default in an OS?
Thank you!
I would like to undestant how hadle dylibs!
.aor "static" library instead. This way the dependency is removed.