Extending Icecast - Problem with Linker
Glenn Cooper <[email protected]> Fri, 30 Oct 2015 16:43:25 +0000
| Newsgroups | gmane.comp.audio.icecast.devel |
|---|---|
| Message-ID | <D2594EAD.5478%[email protected]> |
Hi folks, I am looking to extend on the Icecast engine with a couple of extra features and experiencing some issues. I decided that I should add a logging function that will help me debug the code at a later point by saving messages to a local MySQL database. I have successfully got this module working on my local machine (Centos 6 with Eclipse). I then copied the code over into the client.c module in the Icecast source files, and made sure all of the relevant includes were declared. When trying to compile Icecast with the additional logging functionality, using ./configure & make, I received the following errors: client.o: In function `logSingleMessage': /home/hearme/radio/src/client.c:283: undefined reference to `mysql_init' /home/hearme/radio/src/client.c:297: undefined reference to `mysql_real_connect' /home/hearme/radio/src/client.c:305: undefined reference to `mysql_query' /home/hearme/radio/src/client.c:307: undefined reference to `mysql_error' /home/hearme/radio/src/client.c:308: undefined reference to `mysql_close' /home/hearme/radio/src/client.c:293: undefined reference to `mysql_error' /home/hearme/radio/src/client.c:312: undefined reference to `mysql_close' It¹s obviously a linking problem with MySQL, but how do I go about correcting this? Do I need to make any updates in the configure file? Kind Regards Glenn Cooper _______________________________________________ Icecast-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/icecast-dev