Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to build on visual studio (C2491 and C2720) #164

Open
SeleDreams opened this issue Oct 24, 2020 · 2 comments
Open

Impossible to build on visual studio (C2491 and C2720) #164

SeleDreams opened this issue Oct 24, 2020 · 2 comments

Comments

@SeleDreams
Copy link

Hi, I'm posting this issue because I planned to use this library in one of my projects however it seems like the visual studio build is failing because of __declspec(dllimport) errors.
I generated the vs solution from cmake since i'm using it as a dependency of my library.

2>C:\Users\SeleDreams\OneDrive\Documents\CodeVoiceLib\libs\libcds\src\init.cpp(29): error C2720: 'cds::threading::wintls::Manager::Holder::m_key' : spécificateur de classe de stockage '__declspec(dllimport)' non conforme sur les membres 2>C:\Users\SeleDreams\OneDrive\Documents\CodeVoiceLib\libs\libcds\src\init.cpp(29): error C2491: 'cds::threading::wintls::Manager::Holder::m_key' : définition de données membres static dllimport non autorisée 2>C:\Users\SeleDreams\OneDrive\Documents\CodeVoiceLib\libs\libcds\src\init.cpp(52): error C2491: 'cds::details::check_hpstat_enabled' : définition de fonction dllimport non autorisée 2>C:\Users\SeleDreams\OneDrive\Documents\CodeVoiceLib\libs\libcds\src\init.cpp(67): error C2491: 'cds::details::init_first_call' : définition de fonction dllimport non autorisée 2>C:\Users\SeleDreams\OneDrive\Documents\CodeVoiceLib\libs\libcds\src\init.cpp(72): error C2491: 'cds::details::fini_last_call' : définition de fonction dllimport non autorisée

@tlf30
Copy link

tlf30 commented May 29, 2021

I am having the same error, did you find a solution?

@tlf30
Copy link

tlf30 commented May 31, 2021

This issue appears to be fixed on the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants