c++ - LNK 2019: unresolved external symbol - no template classes -


getting error, looks these errors unique instance , of questions seemed reference templates, , not.

so i'm getting is:

error 5 error lnk2019: unresolved external symbol "public: class vec3 * __thiscall patch::bezcurveinterp(class curve,float)" (? bezcurveinterp@patch@@qaepavvec3@@vcurve@@m@z) referenced in function "public: class vec3 * __thiscall patch::bezpatchinterp(float,float)" (?bezpatchinterp@patch@@qaepavvec3@@mm@z) c:\users\sara\documents\sp14\184\bezeir\project1\bezier.obj project1

the function mentioned defined in bezier.cpp:

#include "bezier.h"  vec3* bezcurveinterp(curve c, float u) {     vec3* res = new vec3[2];     return res; } 

in bezier.h have (among other things):

#ifndef bezier_h #define bezier_h #include "primitives.h"  class patch { public:     vec3* bezcurveinterp(curve, float); 

vec3 defined in "primitives.h":

#ifndef primitives_h #define primitives_h  using namespace std; // class representing vec3s  class vec3 { public:     vec3(); //among other things  }; 

and in "primitives.cpp":

#include "primitives.h"  vec3::vec3() {     x = 0;     y = 0;     z = 0; } 

anything standing out? appreciated c++/visual studio turning out nightmare..........

you missing patch:: bezcurveinterp

vec3* patch::bezcurveinterp(curve c, float u) 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -