By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,376 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

Can not parse a template class

P: n/a
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

Jun 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
?? wrote:
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-lit...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!

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Jun 20 '06 #2

P: n/a

Phlip wrote:
?? wrote:
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-lit...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!

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!



oh, thanks

Jun 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.