Re: Adding a linker to library in makefile

2015-04-14 Thread Miklos Vajna
Hi, On Mon, Apr 13, 2015 at 04:29:19AM +, Andy Mendoza wrote: > Where do I put this linker in the makefiles? mysqlcppconn is an external library already known by the build system, you probably want to use that. See e.g. mysqlc/Library_mysqlc.mk on how to link to it. Regards, Miklos sig

Adding a linker to library in makefile

2015-04-13 Thread Andy Mendoza
Hi. I added #include 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 lin