Bonjour,
J'ai deux projets qui utilise glm , bibliothéque de matrix.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
#include "stdafx.h"
 
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Quand je compile sur un projet , c'est ok , mais sur l'autre j'ai le droit à ça :
1>f:\res\glm\detail\type_mat2x2.inl(147) : error C2143: syntax error : missing ',' before 'constant'
1>f:\res\glm\detail\type_mat2x2.inl(150) : error C2974: 'glm::detail::tvec2' : invalid template argument for 'T', type expected
1> f:\res\glm\detail\type_vec2.hpp(210) : see declaration of 'glm::detail::tvec2'
1>f:\res\glm\detail\type_mat2x2.inl(151) : error C2065: 'V2' : undeclared identifier
1>f:\res\glm\detail\type_mat2x2.inl(156) : error C2244: 'glm::detail::tmat2x2<T,P>::{ctor}' : unable to match function definition to an existing declaration
1> definition
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tvec2 &,const glm::detail::tvec2 &)'
1> existing declarations
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat4x3<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat3x4<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat4x2<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat2x4<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat3x2<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat2x3<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat4x4<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat3x3<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat2x2<U,Q> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tvec2<U,P> &,const glm::detail::tvec2<V,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const U &,const V &,const M &,const N &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tvec2<T,P> &,const glm::detail::tvec2<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const T &,const T &,const T &,const T &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const T &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(glm::detail::tmat2x2<T,P>::ctor)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat2x2<T,Q> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(const glm::detail::tmat2x2<T,P> &)'
1> 'glm::detail::tmat2x2<T,P>::tmat2x2(void)'

J'ai essayer sur un nouveau projet , ok.

Je travaille avec Windows 7, Visual studio 2005.

Merci