I am trying to use thread_local inside an iOS application.
Here's how I am defining it in one of my methods:
PlatformServices::ThreadData* PlatformServices::Get()
{
thread_local ThreadData _threadData;
return &_biData;
}
However, when I try to link, I get the following error:
Undefined symbols for architecture i386: "__tlv_bootstrap", referenced from: NS::PlatformServices::Get()::_biData in libMyLibInfra.a(PlatformServices.o) guard variable for NS::PlatformServices::Get()::_threadData in libMobileBIInfra.a(PlatformServices.o)
Am I missing a library or something?
(XCode 6.1)
Aucun commentaire:
Enregistrer un commentaire