GNU Info

Info Node: (mysql.info)C API linking problems

(mysql.info)C API linking problems


Prev: Getting unique ID Up: C API problems
Enter node , (file) or (file)node

Problems Linking with the C API
...............................

When linking with the C API, the following errors may occur on some
systems:

     gcc -g -o client test.o -L/usr/local/lib/mysql -lmysqlclient -lsocket -lnsl
     
     Undefined        first referenced
      symbol          in file
     floor            /usr/local/lib/mysql/libmysqlclient.a(password.o)
     ld: fatal: Symbol referencing errors. No output written to client

If this happens on your system, you must include the math library by
adding `-lm' to the end of the compile/link line.


automatically generated by info2www version 1.2.2.9