MySQL Forums
Forum List  »  Connector/C++

C++17 and version 1.1 of connector
Posted by: M B
Date: November 02, 2018 01:22AM

I need to build with C++17 but have encountered this error on Ubuntu 16.04:

/usr/local/include/cppconn/exception.h: At global scope:
/usr/local/include/cppconn/exception.h:98:2: error: ISO C++17 does not allow dynamic exception specifications
MEMORY_ALLOC_OPERATORS(SQLException)
^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/cppconn/exception.h:98:2: error: ISO C++17 does not allow dynamic exception specifications
MEMORY_ALLOC_OPERATORS(SQLException)

I'm running on 2 systems: MacOS and Ubuntu 16.04. For Mac OS, I can build fine (using latest Xcode 10.1). For Ubuntu, I'm running gcc 8. Previously I was using C++11 with gcc 5.4, so things were working fine. But today I updated to gcc 8 and encountered these problems.

On the download page, MacOS allows me to use 1.1.11. However for Ubuntu, only 18.04 has 1.1.11. Moreover github looks behind by 2 years. (for 1.1).

Is there a way for me to get either 16.04 or can github actually be updated to reflect the latest so we can at least build it ourselves? Or can I use the 18.04 version of the SDK on 16.04?

Options: ReplyQuote


Subject
Views
Written By
Posted
C++17 and version 1.1 of connector
1832
M B
November 02, 2018 01:22AM
736
M B
November 02, 2018 01:23AM
644
M B
November 02, 2018 12:11PM
606
November 06, 2018 04:21PM


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.