Operating System - HP-UX
1846977 Members
4176 Online
110257 Solutions
New Discussion

Re: Forward declaration with aCC

 
vijay_57
Occasional Contributor

Forward declaration with aCC

We are facing one problem with aCC while compiling one of the 3rd party software.
The compilation error is coming while using template definations.
The 3rd party software is using forward declaration for template class and trying to create instance of the template class.
But the implementation of the template class is done in another file.
We are getting the error "Cannot generate a specialization of incomplete template class" when we try to compile with aCC. But the same file is compiling fine with gcc.
Is there any workaround to solve this probelm with aCC ?

-Vijay
1 REPLY 1
Steve Steel
Honored Contributor

Re: Forward declaration with aCC

Hi


Go to
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2504,00.html

Select your language

Search
"Cannot generate a specialization of incomplete template "


There you will find the latest info


Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)