Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi. I added #include<mysql/mysql.h> to printdlg.cxx because I want it to connect to a database I've 
created. when I build the program it gives an error: undefined reference to 'mysql_init()'. I 
researched and the solution says put a linker 'mysql_config --cflags --libs' when compiling. Where 
do I put this linker in the makefiles? I'm still new to LibreOffice hacking. I have an application 
and I want to connect it to LibreOffice to determine how many pages to be printed to compare it to 
the user's remaining credit. if the credit is less than the number of pages then the application 
will cancel the printing. I already got the canceling  part. It's the comparing part I don't get 
because of the error: undefined reference to 'mysql_init()'. Hope you would help me out with this. 
Thanks
 

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.