S
Shen
I saw this conclusion in a couple of groups. For example, if you
define a class template, in VC++ you have to merge the .h and .cpp
files into one file and include it in other files where they have
something to do with this template class. Otherwise you'll get Link
errors(unresolved external symbol...LNK2001/LNK2019).
Is it still true now? Has MS Visual studio 2003 done something for it?
or does anyone figure out a solution other than changing the .h/.cpp
style?
It is not good to include implementation in other files, for it tends
to put redefinition bugs into your project and...anyway it is off the
..h/.cpp way.
Thanks for the reply,
Shen
define a class template, in VC++ you have to merge the .h and .cpp
files into one file and include it in other files where they have
something to do with this template class. Otherwise you'll get Link
errors(unresolved external symbol...LNK2001/LNK2019).
Is it still true now? Has MS Visual studio 2003 done something for it?
or does anyone figure out a solution other than changing the .h/.cpp
style?
It is not good to include implementation in other files, for it tends
to put redefinition bugs into your project and...anyway it is off the
..h/.cpp way.
Thanks for the reply,
Shen