Thread: Cross platform embedded MySQL server

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    4

    Cross platform embedded MySQL server

    Hi,
    I'm trying to embed libmysqld into a program ( think xampp ) and kind of struggling with getting to grips with it. Does anyone have experience embedding either this or regular MySQL?

    To start with, I've wrapped the C example into a class, but I'm getting runtime errors, which is a bit confusing. It compiles and links without any problems, but when the program is run I get an invalid pointer error (EXC_BAD_ACCESS) followed up by the debugger saying:

    GDB: Error: XCode could not locate source file: is_prefix.c (line: 30)

    I don't understand why its telling me this at runtime.

    Sorry, I realise I may be asking a lot of different things here, but that is the main question above... why does GDB tell me that it cant find the .c file, instead of it coming up at compile time?

    Any help appreciated,
    Cheers!

  2. #2
    Registered User
    Join Date
    Aug 2010
    Posts
    13
    make sure you include libmysql.lib, and mysql.h.

    #pragma comment ( linker, "libmysql.lib" )

    or configerate with the programs properties.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. embedded MySQL .exe incompatibility ?
    By trekker in forum C++ Programming
    Replies: 1
    Last Post: 06-25-2003, 06:19 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM