Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unresolved external Linker error

Status
Not open for further replies.

ngonsalves

Programmer
May 17, 2002
1
CA
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

 
Make a header file for the functions, too.

They really should have had one even if they weren't templated , but they definitely need to be moved to one if you're using templates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top