-
Notifications
You must be signed in to change notification settings - Fork 992
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
Can't compile concurrent_vector with include winsock2.h or ws2tcpip.h #1407
Comments
Thank you for reporting this, @cccbbaa. Have you tried defining |
Thank you for your reply. That would really help me solve this problem. |
The problem is in the definition of the |
Thanks for your reply. That really helped me. |
Closing the issue. Please reopen if there are any further questions. |
Environment:
Windows 10 22h2
CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
Visual Studio 2022 version is 17.10.2
compile in Intel C++ Compiler 2024.1
Description:
I have identified a potential issue when I use tbb::concurrent_map with windows socket. There's no problem when I just include tbb/concurrent_map.h and use tbb::concurrent_map<int, std::string>. But when I include winsock2.h or ws2tcpip.h, I get a compiler error, like these:
This is including the compilation of different files.
![recording](https://private-user-images.githubusercontent.com/95020703/340119206-80b91f91-62b4-4551-81e1-7ad6a301c147.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0ODA1MTUsIm5iZiI6MTcyMDQ4MDIxNSwicGF0aCI6Ii85NTAyMDcwMy8zNDAxMTkyMDYtODBiOTFmOTEtNjJiNC00NTUxLTgxZTEtN2FkNmEzMDFjMTQ3LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDIzMTAxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNjODgyMTFiZTMzODU3NTdhYTJkMjY5MTczZTU2NDQ2NWFmNzhhNTcxZDhiMmI1Y2VhMTUxNDhlNDlmYWUwZDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hlt_fOc4PNArMZJ915d62RNHRub5OGlqB3MfnftPNZU)
![recording](https://private-user-images.githubusercontent.com/95020703/340130897-a4f11917-7af6-424f-a03b-2cb327113df7.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0ODA1MTUsIm5iZiI6MTcyMDQ4MDIxNSwicGF0aCI6Ii85NTAyMDcwMy8zNDAxMzA4OTctYTRmMTE5MTctN2FmNi00MjRmLWEwM2ItMmNiMzI3MTEzZGY3LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDIzMTAxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzNzEwZWUxNjNmNTYzMzcwOThhOWE4MjAwMzMzMzg1YTUyMzVjYzIyMGJmY2NlYmYzNzM5ODVlZDY5ZWE0ZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RmRQg-FoveCWWDLTBe5RgWt7PA8afEU6bmFYShcGcxY)
The text was updated successfully, but these errors were encountered: