[GCC-XML] Problem exposing templates
Balasubramanyam, Shivakumar
sbalasub at qualcomm.com
Tue Aug 1 23:27:24 EDT 2006
Hi,
I have installed the latest cvs version of gccxml, pyplusplus, pygccxml
I am attaching the code to this mail that has the problem.
Files:
Stack.h:
Has the class template
BP_Stack.cpp
Contains the boost.python code generated by py++
Sconstruct-lib:
Builds the stack library
Sconstruct:
Builds the boost-python-stack library
<<genCode.py>> <<sconstruct>> <<sconstruct-lib>> <<Stack.h>>
<<BP_Stack.cpp>>
The compilation fails at line number 29 and 40.
The problem the functional definition generated with
"_GLOBAL__I_Stack.h******
{ //::_GLOBAL__D_Stack.hLZJ4nd
typedef void ( *function_ptr_t )( );
bp::def(
"_GLOBAL__D_Stack.hLZJ4nd"
, function_ptr_t( &::_GLOBAL__D_Stack.hLZJ4nd )
, bp::default_call_policies() );
}
{ //::_GLOBAL__I_Stack.hLZJ4nd
typedef void ( *function_ptr_t )( );
bp::def(
"_GLOBAL__I_Stack.hLZJ4nd"
, function_ptr_t( &::_GLOBAL__I_Stack.hLZJ4nd )
, bp::default_call_policies() );
}
Is there any ways else to explicitly instantiate the template?
The class compiles and runs fine if I remove those two declarations.
Thanks,
Shiva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/912ec513/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genCode.py
Type: application/octet-stream
Size: 808 bytes
Desc: genCode.py
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/912ec513/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sconstruct
Type: application/octet-stream
Size: 318 bytes
Desc: sconstruct
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/912ec513/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sconstruct-lib
Type: application/octet-stream
Size: 149 bytes
Desc: sconstruct-lib
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/912ec513/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Stack.h
Type: application/octet-stream
Size: 656 bytes
Desc: Stack.h
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/912ec513/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BP_Stack.cpp
Type: application/octet-stream
Size: 1241 bytes
Desc: BP_Stack.cpp
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20060801/912ec513/attachment-0004.obj>
More information about the gccxml
mailing list