ngonsalves
Programmer
Hi
I have these templates in separate files that I want to use in my main file. Initally whenever I compiled and then built the file, I got linker errors. Then I was told to put all the content of my template .cpp file into the respective header file. When I did that and compiled, I no longer got errors with those template functions and classes from .cpp files that had respective header files. However I did still get error messages with those template functions that did not have their own header files.
Any suggestions on what I should do ?
Thanks
Regards
Nitin
I have these templates in separate files that I want to use in my main file. Initally whenever I compiled and then built the file, I got linker errors. Then I was told to put all the content of my template .cpp file into the respective header file. When I did that and compiled, I no longer got errors with those template functions and classes from .cpp files that had respective header files. However I did still get error messages with those template functions that did not have their own header files.
Any suggestions on what I should do ?
Thanks
Regards
Nitin