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

use of undeclared identifier '_BitScanForward' #479

Closed
schwindelig opened this issue Feb 10, 2016 · 1 comment
Closed

use of undeclared identifier '_BitScanForward' #479

schwindelig opened this issue Feb 10, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@schwindelig
Copy link

glm-0.9.7.2 (stable)
llvm/clang 3.7.1 on Windows 10

#define GLM_MESSAGES
#include <glm/glm.hpp>


int main()
{
    return 0;
}
clang++ -v
clang++ test.cpp -Iglm-0.9.7.2

clang version 3.7.1 (tags/RELEASE_371/final)
Target: i686-pc-windows-gnu
Thread model: posix
In file included from test.cpp:2:
In file included from glm-0.9.7.2\glm/glm.hpp:90:
In file included from glm-0.9.7.2\glm/fwd.hpp:35:
In file included from glm-0.9.7.2\glm/detail/type_int.hpp:35:
glm-0.9.7.2\glm/detail/setup.hpp:49:10: warning: GLM: version 0.9.7.2 [-W#pragma-messages]
#       pragma message ("GLM: version 0.9.7.2")
               ^
glm-0.9.7.2\glm/detail/setup.hpp:102:11: warning: GLM: Windows platform detected [-W#pragma-messages]
#               pragma message("GLM: Windows platform detected")
                       ^
glm-0.9.7.2\glm/detail/setup.hpp:337:11: warning: GLM: LLVM compiler detected [-W#pragma-messages]
#               pragma message("GLM: LLVM compiler detected")
                       ^
glm-0.9.7.2\glm/detail/setup.hpp:367:11: warning: GLM: 32 bits model [-W#pragma-messages]
#               pragma message("GLM: 32 bits model")
                       ^
glm-0.9.7.2\glm/detail/setup.hpp:475:11: warning: GLM: SSE2 instruction set [-W#pragma-messages]
#               pragma message("GLM: SSE2 instruction set")
                       ^
glm-0.9.7.2\glm/detail/setup.hpp:622:11: warning: GLM: C++98 [-W#pragma-messages]
#               pragma message("GLM: C++98")
                       ^
glm-0.9.7.2\glm/detail/setup.hpp:882:11: warning: GLM: Swizzling operators disabled, #define GLM_SWIZZLE to enable swizzle operators [-W#pragma-messages]
#               pragma message("GLM: Swizzling operators disabled, #define GLM_SWIZZLE to enable swizzle operators")
                       ^
glm-0.9.7.2\glm/detail/setup.hpp:979:11: warning: GLM: .length() returns glm::length_t, a typedef of int following the GLSL specification [-W#pragma-messages]
#               pragma message("GLM: .length() returns glm::length_t, a typedef of int following the GLSL specification")
                       ^
In file included from test.cpp:2:
glm-0.9.7.2\glm/glm.hpp:94:10: warning: GLM: Core library included [-W#pragma-messages]
#       pragma message("GLM: Core library included")
               ^
In file included from test.cpp:2:
In file included from glm-0.9.7.2\glm/glm.hpp:117:
In file included from glm-0.9.7.2\glm/integer.hpp:35:
In file included from glm-0.9.7.2\glm/detail/func_integer.hpp:232:
glm-0.9.7.2\glm/detail/func_integer.inl:114:31: error: use of undeclared identifier '_BitScanForward'
                                unsigned char IsNotNull = _BitScanForward(&Result, *reinterpret_cast<unsigned long*>(&Value));
                                                          ^
glm-0.9.7.2\glm/detail/func_integer.inl:126:31: error: use of undeclared identifier '_BitScanForward64'
                                unsigned char IsNotNull = _BitScanForward64(&Result, *reinterpret_cast<unsigned __int64*>(&Value));
                                                          ^
glm-0.9.7.2\glm/detail/func_integer.inl:172:30: error: use of undeclared identifier '_BitScanReverse'
                        unsigned char IsNotNull = _BitScanReverse(&Result, *reinterpret_cast<unsigned long*>(&Value));
                                                  ^
glm-0.9.7.2\glm/detail/func_integer.inl:190:30: error: use of undeclared identifier '_BitScanReverse64'
                        unsigned char IsNotNull = _BitScanReverse64(&Result, *reinterpret_cast<unsigned __int64*>(&Value));
                                                  ^
9 warnings and 4 errors generated.
Groovounet added a commit that referenced this issue Feb 21, 2016
@Groovounet Groovounet added the bug label Feb 21, 2016
@Groovounet Groovounet added this to the GLM 0.9.7 milestone Feb 21, 2016
@Groovounet Groovounet self-assigned this Feb 21, 2016
@Groovounet
Copy link
Member

Thanks for reporting, this issue has been fixed for GLM 0.9.7.3 release.

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

No branches or pull requests

2 participants