Thread: MySQL Problem

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    8

    Exclamation MySQL Problem

    I've been trying to use MySQL from my C program and I'm using Xcode but I keep getting this error and I can't figure out what the problem is. I hope somebody can help!

    Undefined symbols:
    "_mysql_close", referenced from:
    _main in main.o
    "_mysql_init", referenced from:
    _main in main.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

  2. #2
    Ultraviolence Connoisseur
    Join Date
    Mar 2004
    Posts
    555
    Did you -l the appropriate libraries?

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    8
    That's probably what I'm missing. How do I do that?

  4. #4
    Ultraviolence Connoisseur
    Join Date
    Mar 2004
    Posts
    555

  5. #5
    Registered User
    Join Date
    Feb 2010
    Posts
    8
    Thanks. I appreciate. I wasn't sure on what to do and I'd been trying to figure it out for hours. I'm new to C and I've been searching all around, but I must've been searching for the wrong thing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  2. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  3. Installing MySQL
    By cerin in forum Tech Board
    Replies: 2
    Last Post: 02-18-2006, 12:30 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Problem connecting to MySQL Database?
    By MrLucky in forum C++ Programming
    Replies: 5
    Last Post: 01-30-2006, 11:30 AM