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.