Can you please stop using C++ comments in header files designed for C
programming?
/opt3/dbs/mys/8.0/include/mysql.h:36:1: error: C++ style comments are not
allowed in ISO C90 [-Werror]
// Small extra definitions to avoid pulling in my_inttypes.h in client code.
^
/opt3/dbs/mys/8.0/include/mysql.h:36:1: error: (this will be reported only once
per input file) [-Werror]
In file included from /opt3/dbs/mys/8.0/include/mysql.h:68:0,
from mys.c:42:
/opt3/dbs/mys/8.0/include/binary_log_types.h:68:8: error: C++ style comments
are not allowed in ISO C90 [-Werror]
#endif // __cplusplus
^
/opt3/dbs/mys/8.0/include/binary_log_types.h:68:8: error: (this will be
reported only once per input file) [-Werror]
In file included from /opt3/dbs/mys/8.0/include/mysql.h:69:0,
from mys.c:42:
/opt3/dbs/mys/8.0/include/mem_root_fwd.h:30:9: error: C++ style comments are
not allowed in ISO C90 [-Werror]
#endif // MEM_ROOT_FWD_INCLUDED
^
/opt3/dbs/mys/8.0/include/mem_root_fwd.h:30:9: error: (this will be reported
only once per input file) [-Werror]
In file included from /opt3/dbs/mys/8.0/include/mysql.h:83:0,
from mys.c:42:
/opt3/dbs/mys/8.0/include/mysql_time.h:29:1: error: C++ style comments are not
allowed in ISO C90 [-Werror]
// Do not not pull in the server header "my_inttypes.h" from client code.
^
...
Seb
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql