Hi all,
I inserted a Sorter class (quick sort algorithm helper class) into my MFC project as a generic class (other than MFC class), then I got two files Sort.h and Sort.cpp; The project can be compiled, but it has problem with linking --- the error message is something looks like "unresolved external symbol ......".
However when I merged Sort.h and Sort.cpp into only one file Sort.h, and put declare and implementation together, my project got compiled and linked successfully. So I wonder what's wrong with separating declare and implementation of a generic class. Do I need to configure the Project Settings for project compiling and linking or something else.
Thanks.
Jian Hua
I inserted a Sorter class (quick sort algorithm helper class) into my MFC project as a generic class (other than MFC class), then I got two files Sort.h and Sort.cpp; The project can be compiled, but it has problem with linking --- the error message is something looks like "unresolved external symbol ......".
However when I merged Sort.h and Sort.cpp into only one file Sort.h, and put declare and implementation together, my project got compiled and linked successfully. So I wonder what's wrong with separating declare and implementation of a generic class. Do I need to configure the Project Settings for project compiling and linking or something else.
Thanks.
Jian Hua