All you have to do is pretty simple, goto the Project menu then click on Project Properties then goto the
Variables tab and add the following:LIBS=`mysql_config --libs`
CFLAGS=`mysql_config --cflags`
As seen in the picture below.

How it works?
Your configure file now know what to do for --libs and --cflags, when the user runs configure it'll generate makefiles. Which you can then use to build the executable.

No comments:
Post a Comment