dbTalk Databases Forums  

Using MySQL C API

comp.databases comp.databases


Discuss Using MySQL C API in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Katz
 
Posts: n/a

Default Using MySQL C API - 12-15-2003 , 05:18 PM






am trying to compile a C program calling MySQL functions. I have pointed to the directory containing the header files, and to the directory containing the client library. I get a linker message saying the linker can't find mysql_query, mysql_fetch_row, and all the other mysql functions I call from the program. I have downloaded and installed the mysql development library. What am I not doing?


Reply With Quote
  #2  
Old   
Oliver Dain
 
Posts: n/a

Default Re: Using MySQL C API - 12-22-2003 , 09:37 AM






David Katz wrote:

Quote:
am trying to compile a C program calling MySQL functions. I have
pointed to the directory containing the header files, and to the
directory containing the client library. I get a linker message
saying the linker can't find mysql_query, mysql_fetch_row, and all
the other mysql functions I call from the program. I have
downloaded and installed the mysql development library. What am I
not doing?
Depends on the development environment you're using. e.g. if its gcc
you'll need "gcc -lmysql -L/path/to/mysql/libs", or the equivalent.
If you're using Visual C++ you'll need to set the library paths and
tell the compiler you need the mysql dll's in the appropriate places
in the project properties dialog, etc.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.