-
Notifications
You must be signed in to change notification settings - Fork 64
Xcode 7.2 does not support thread_local => no way to build the MySQL connector for sqlpp11 #5
Comments
Hi Juan, I currently can't test with Xcode directly, but I will setup testing on travis.ci soon. For the time being, please try to use boost.thread:
Best, Roland |
Hi Roland! Your idea worked!! Thank you so much!! Juan |
Glad it worked out :-) |
This solution is really bad. |
So what would be a good solution? |
The "best" solution is for Apple to fix this issue. |
CMake solution: https://cmake.org/cmake/help/v3.0/variable/APPLE.html |
Since I don't think I have that kind of pull at Apple, I like the Care to write a pull request? |
#29 |
Hi,
After much searching around, I have been stopped by the frustrating reality that Xcode 7.2 does not yet support thread_local variables and thus it is currently impossible to build "sqlpp11-connector-mysql-master". Connection.cpp uses this like so:
void execute_statement(detail::connection_handle_t& handle, const std::string& statement)
{
thread_local MySqlThreadInitializer threadInitializer;
If someone knows a workaround, I would be deeply grateful! Such a shame for a great library...'
Thanks again,
Juan
The text was updated successfully, but these errors were encountered: