seznam / SuperiorMySqlpp

SuperiorMySQL++
GNU Lesser General Public License v3.0
31 stars 20 forks source link

Linker error with gcc 10 and multiple translation units including superior_mysqlpp.hpp #132

Closed daniele77 closed 3 years ago

daniele77 commented 3 years ago

With recent compilers (e.g., gcc 10) the linking of multiple translation units including the header superior_mysqlpp.hpp results in an error. The linker complains about multiple definitions of SuperiorMySqlpp::mapSecondGetter.

This is because of this definition:

https://github.com/seznam/SuperiorMySqlpp/blob/05421a8f6d31bc3dc01b03f9d1b3eb524db818f6/include/superior_mysqlpp/master_slave_connection_pools.hpp#L20)

I provided a solution to this issue in the PR #131

OpatrilPeter commented 3 years ago

Closed by #134