how to use std/std_unordered_map.i

"Duce, Richard via Swig-user" <[email protected]> Thu, 15 Sep 2022 23:50:48 +0000
Newsgroups gmane.comp.programming.swig
Message-ID <BN7PR12MB25932EBAE7ED270ACF9A637183499@BN7PR12MB2593.namprd12.prod.outlook.com>
[AMD Official Use Only - General]

Hi everyone,
I posted an earlier question and wanted to attach this to that, but can not figure out how to do it.

I am a new swig user.
My case  is  for c++  connecting to perl.

I had an example working fine   but only using   std::string   and  std_vector to connect back from c++ to perl.
That worked fine, but I then wanted to   use  std_unordered_map  ( I am now using swig version 4.0.2 )

When I have  %include <std_unordered_map.i>
in my     .i   file I got an error message saying  std_unordered_map.i     not found,
although I can see it in  share/swig/4.0.2/std

So    my general question is... how do I include that file  from  the   std  directory ?
It seems like my earlier guess at attempting to use  -I/path/to/swigInstall/share/swig/4.0.2/std

does not work,  because if I use that in the cmd line .... Like.

swig  -c++ -perl -I/path/to/swigInstall/share/swig/4.0.2/std    myFile.i

I can not compile the resulting wrap file successfully.. (even if I remove all the std_unordered_map stuff   leaving only stuff that previously worked)

So... how do I get access to the .i files in share/swig/4.0.2/std

Ok.. thanks for any info
Richard Duce

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user