Hello.


I didn't have a practice with the KDEvelop. But I'll give you

some general rules. My suggestion, is that you use gcc compiler.

mysql_config just produces a list of libraries which you have to

add. Usually you can specify them in the environment variable $LDFLAGS

or similar. Run configure with --help option, and in most cases it gives

you some advice. If no, edit maually Makefile.in and find the place

where additional libraries was specified. Put there your libraries.

Also you need to specify a library path, which is added in the same way,

but you should put somethinkg like -L/path_to_mysqllibraries if them

don't located in the standart directories. To specify the includes use 

-I/path_to_includes. Usually you can add it to your CFLAGS. But

for complete understanding what you should do, just read man gcc,

especially parts related to -I flags and -L flags. Also read info pages

about GNU Autotools.



 Another, elegant, way to add the mysql_config, is to use something like 

LDFLAGS+= `mysql_config --your_option`, which automatically

produces the list of libraries. 







Mohsen Pahlevanzadeh <[EMAIL PROTECTED]> wrote:

> Dears,I want to add mysql's  INCLUDEs & LIBs path to my Makefile.in .

> Of course, i have wizarded a project with KDEvelop.It has created 3 Makefile 

> with .cvs .am .in extensions.

> Please guide me that i can add mysql_config to them.

> Yours,Mohsen

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to