Open
Description
Function glm_mat2_copy
from cglm/mat2.h internally uses glm_vec4_ucopy
, defined inside cglm/vec4.h, which is not included. THis leads to symbol not being found.
Minimal example:
#include <cglm/mat2.h>
void foo() {
mat2 x, y;
glm_mat2_copy(x, y);
}
This will result in a error LNK2019: unresolved external symbol _glm_vec4_ucopy referenced in function _glm_mat2_copy
on MSVC.
A simple solution for this is to just add #include <cglm/vec4.h>
into the cglm/mat2.h file.