I have solved the unresolved reference problem just by a change the build subsystem from windows to console. VS2022, Windows 10. See issue #1727 in gmsh forum.