c++ - g++ undefined reference to 'Curve:Curve()' -
getting following errors when i'm compiling g++:
parser.cpp:(.text+0x2478): undefined reference `curve::curve()'
parser.cpp has following header:
#include "bezeir.h"
in bezeir.h have:
class curve { public: curve(); };
in bezeir.cpp:
#include "bezeir.h" curve::curve(){ count = 0; }
i'm getting couple of same error other classes cases more or less redundant. seemed consistent i'd read .h/.cpp file, i'm tad confused.
you need link parser.cpp
bezeir.o
, compile can use like:
g++ parser.cpp bezeir.cpp
also note correct spelling bezier
, not bezeir
.
Comments
Post a Comment