Problem to wrap a C++ template for Python

View: New views
1 Messages — Rating Filter:   Alert me  

Problem to wrap a C++ template for Python

by elbichon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a problem to wrap c++ templates!
This problem occur when the code to wrap is composed by a cpp and a hpp files (I have no problem with only a cpp).
swig and g++ compilation are well but when I import the module in python :
ImportError: ./_Stack.so: undefined symbol: _ZN5StackIiE3popEv

Can you help me? I have join my code to this mail.

Thx

p.s. : sorry for my bad english



------------------------------------------------------------------------------

_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

stack.tbz (22K) Download Attachment