Skip to content

Conversation

@klshrinidhi
Copy link
Contributor

Problem -- Including the BTK headers causes an error on Windows with VS2015.
" .... cstdint: 'uint8_t' is not a member of global namespace .... ".
The error appears to be in the standard library but is actually
caused by the fact that Utilities/stdint.h is included for MSVC
builds and the directory Utilities is in the include path for the
compiler. When trying to search for a header named stdint.h, the
compiler keeps running into Utilities/stdint.h even when the
original intention was to find the header in the system standard
path.
Solution -- Rename the file Utilities/stdint.h to something else that does not
conflict with standard library header of the same name therefore
avoiding compiler choosing this header when standard library header
is meant to be found.

klshrinidhi and others added 3 commits December 18, 2015 15:09
…indows.

Problem -- Including the BTK headers causes an error on Windows with VS2015.
           " .... cstdint: 'uint8_t' is not a member of global namespace .... ".
           The error appears to be in the standard library but is actually
           caused by the fact that Utilities/stdint.h is included for MSVC
           builds and the directory Utilities is in the include path for the
           compiler. When trying to search for a header named stdint.h, the
           compiler keeps running into Utilities/stdint.h even when the
           original intention was to find the header in the system standard
           path.
Solution -- Rename the file Utilities/stdint.h to something else that does not
            conflict with standard library header of the same name therefore
            avoiding compiler choosing this header when standard library header
            is meant to be found.
melund added a commit to melund/BTKCore that referenced this pull request Dec 3, 2019
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

Successfully merging this pull request may close these issues.

2 participants