Re: [ OT ] C linkage

From: Chun Wah (
Date: 04/05/04

Date: Tue, 06 Apr 2004 01:24:51 +0800

Chris ( Val ) wrote:
> "Chun Wah" <> wrote in message news:40715fa5$
> | I am not sure my problem is relating to compiler or language, sorry if
> | its off topic.
> |
> | I am writing a C++ interface to MySQL, using MySQL's library ( in C ).
> | When I tried to call functions declared in MySQL's header file
> | (mysql.h), I got a compile error said they are undefined references. How
> | can I access to those declaration and functions ?
> Sorry, but this is really off topic in this group.
> Have you checked the documentation here:
> You might just need to add the libs to your project.
> Additionally, the following is just a solitary header, that
> can connect to different databases(including MySQL) - I use
> it to connect directly to Oracle, and it works very well.
> It might make your life easier than the MySQL API.
> Sorry I can't be of more help.
> Cheers.
> Chris Val
I found out that was a linking error.

Oh... I didnt know there is a C++ API for MySQL. I was following
DuBois's book which introduced C API only.

Thanks for the info.

Relevant Pages

  • Re: Apache, mysql, phpMyAdmin
    ... Chris Sharman wrote: ... > Installed all the latest versions on Alpha VMS 7.3-1. ... > All appears to be working, but I can't get phpMyAdmin to login properly. ... > I've got mysql installed on a test machine with passwords unset (ie open ...
  • Re: MySQL from OpenVMS BASIC
    ... for VMS non-C high level languages to use the MySQL C API that they'd ... work with a remote MySQL database; they have a BASIC compiler, ... Are you absolutely sure you want the MySQL-specific API rather than ... I'm pretty sure Attunity has ODBC wrappers. ...
  • Re: MySQL from OpenVMS BASIC
    ... We've got a site interested in having their VMS system ... work with a remote MySQL database; they have a BASIC compiler, ... I know BASIC can be directly coded to work with the C API, ... then there are plenty of free languages available. ...
  • RE: Beginners explanation for API Dialog Box Code?
    ... The code I posted uses the API to which you refer. ... an open spreadsheet you have modified or created. ... "Chris C via" wrote: ... >>'Flags Hides the Read Only Check and Only allow existing files ...
  • Re: Return info about PHP installation mySQL compatibility
    ... I've used phpinfoto confirm settings for mySQL on our host server, ... Then this API version should be ... old-passwords option on the server or you will get the 'Client does not ...