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

Fix the problem with using BTK in other libraries (like OpenSim) on Windows with MSVC. #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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