MySQL Forums
Forum List  »  Connector/C++

Legacy C issue
Posted by: Terry Warren
Date: March 22, 2020 10:00AM

I am trying to use the newest connector (8.0.19) to build legacy c programs. This is the CPP connector but documentation indicates that it can also be used to run legacy c programs although there is little or no documentation on how to do this.

What I've tried is to create a new c project in Xcode 11; add the header search path for the mysql connector includes (/usr/local/mysql-connector-c++-8.0.19/include) and then add the include reference:

#include <mysql/jdbc.h>

into my (empty) program. However build fails with error that <map> cannot be resolved. It's referenced in the included file ../jdbc/cppcon/connection.h

Is this supposed to work? If so, what are the appropriate includes.

thanks for any response

NOTE: I also filed a bug for this

Options: ReplyQuote

Written By
Legacy C issue
March 22, 2020 10:00AM
March 23, 2020 08:51AM
March 23, 2020 05:04PM
March 27, 2020 03:37AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.