Skip to content

cglm_vec4_ucopy not defined inside cglm/mat2.h #425

Open
@m4reQ

Description

@m4reQ

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions