Assuming you are talking about std::vector, there should be a
std_vector.i that you can %include to add support for that under SWIG.
I would search the archive for more details.
Cheers,
jas.
On 11/14/05, Aaron Dalton <
[hidden email]> wrote:
> I can't seem to find any recent posts on this subject. I am using Swig
> 1.3.27 and want to more easily access C++ vectors by accessing them as
> Perl arrays (or references). I'm completely new to Swig (and I'm not a
> C-meister either) so all I have figured out so far is how to export
> class methods and basic data types. How do I access C++ vectors as Perl
> arrays?
>
> I'm also having some problems with a class inheriting from std::pair.
> Are there any caveats I need to know about in regards to this STL?
>
> Thank you for your time!
>
> --
> Aaron Dalton | Super Duper Games
>
[hidden email] |
http://superdupergames.org>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php> _______________________________________________
> Swig-user mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/swig-user>
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
<a href="http://ads.osdn.com/?ad_idv28&alloc_id845&op=click">http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user