Can not parse a template class

G

Guest

When i put a definition of a template class and its implementation
into .h file and .cpp file separately . linker reports an error that
LNK2019 : can not parse an extern notation.

why?

thanks in advance
 
P

Phlip

?? said:
When i put a definition of a template class and its implementation
into .h file and .cpp file separately . linker reports an error that
LNK2019 : can not parse an extern notation.

If this FAQ doesn't cover that...

http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12
"Why can't I separate the definition of my templates class from it's [sic]
declaration and put it inside a .cpp file?"

....post an example of your code. But always Google the FAQ before posting!
 
G

Guest

Phlip said:
?? said:
When i put a definition of a template class and its implementation
into .h file and .cpp file separately . linker reports an error that
LNK2019 : can not parse an extern notation.

If this FAQ doesn't cover that...

http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12
"Why can't I separate the definition of my templates class from it's [sic]
declaration and put it inside a .cpp file?"

...post an example of your code. But always Google the FAQ before posting!




oh, thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,222
Latest member
patricajohnson51

Latest Threads

Top