benoost123
asked on
Yet another unresolved external symbol error.
Thought I had it sorted and then this new error came up....and its yet another of these unresolved external symbol errors.
Is there a way of finding out what they mean and how to fix it.....have had a few of these errors and all seem to have a different solution...
PLEASE HELP!!! again...
coursework error LNK2019: unresolved external symbol "public: void __thiscall shape_utils::draw_all<clas s std::vector<class Shape *,class std::allocator<class Shape *> > >(class std::vector<class Shape *,class std::allocator<class Shape *> > const &)" (??$draw_all@V?$vector@PAV Shape@@V?$ allocator@ PAVShape@@ @std@@@std @@@shape_u tils@@QAEX ABV?$vecto r@PAVShape @@V?$alloc ator@PAVSh ape@@@std@ @@std@@@Z) referenced in function _main
The shape_utils is one of my own classes and it's part of my project and I've already set precompiled headers to off.
Have also checked that the method signature is exactly the same in the header and cpp file.
It's also a template method...
Hope this info helps...
Is there a way of finding out what they mean and how to fix it.....have had a few of these errors and all seem to have a different solution...
PLEASE HELP!!! again...
coursework error LNK2019: unresolved external symbol "public: void __thiscall shape_utils::draw_all<clas
The shape_utils is one of my own classes and it's part of my project and I've already set precompiled headers to off.
Have also checked that the method signature is exactly the same in the header and cpp file.
It's also a template method...
Hope this info helps...
What's the declaration and where does the implementation reside? It should be in the same file as the implementation.
ASKER
template <typename Container>
void draw_all(const Container& con);
it's declared in shape_utils.h and the implementation is in shape_utils.cpp
void draw_all(const Container& con);
it's declared in shape_utils.h and the implementation is in shape_utils.cpp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Have done it...... IT WORKS! (or at least it compiles for now.... :-) )
Thanks very much jkr!
Thanks very much jkr!