How to fix "no member named" somefunction in the global namespace "

Environment: Windows 7, Visual Studio 2012, Pepper_34

We have an application that requires parallel processing. For this we used TBB. Now, porting to PNaCl, we wanted to use this feature to switch to using the thread pool built around std::threadin C ++ 11.

Before running the switch, an application (not using TBB) builds for PNaCl without errors.

We know that we will need C ++ 11 for the new thread pool, so I turned on C ++ 11 with the command line -std=c++11.

Now I get some errors similar to:

T:\nacl_sdk\pepper_34\toolchain\win_pnacl\usr\include\c++\v1\cstdio(138,9): error : no member named 'snprintf' in the global namespace

Thus, I am sure that there is no compilation flag, command line argument, path or something, because this error is generated when compiling cstdio.

The same compilation error

T:\nacl_sdk\pepper_34\toolchain\win_pnacl\usr\include\c++\v1\__locale and

T:\nacl_sdk\pepper_34\toolchain\win_pnacl\usr\include\c++\v1\locale

Are these paths correct?

So my question is what am I missing here to get rid of these errors?

+4
source share

Source: https://habr.com/ru/post/1542230/


All Articles