Re: my_global.h, my_getopt.h, etc missing from MySQL 8 devel
Posted by: Georgi Kodinov
Date: July 19, 2022 01:10AM

These two headers (and the corresponding libmysql symbols) were never really part of the published C API. In 8.0 we've taken steps to limit the symbols exposed by libmysqlclient to avoid namespace pollution.

my_getopt.h is an internal header that relates to parsing the command line in the client tools. I would suggest using more standard tools like e.g. getopt() or boost instead.

my_global.h was a amalgamation of utility macros for C API that was split into its parts in 8.0.

I would recommend (as an iterim step) try compiling with mysql-5.7. And then work out why you need these internal headers in your program and replace the usage.

Georgi "Joro" Kodinov
MySQL SrvGen team lead
Plovdiv, Bulgaria

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: my_global.h, my_getopt.h, etc missing from MySQL 8 devel
47
July 19, 2022 01:10AM


Sorry, only registered users may post in this forum.

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.