470,641 Members | 1,566 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

Swig Problem string&


I have created a simple function called 'addTheString(string& str,
string appstr)' and the intension
is to append the 'appstr' to 'str' and use 'str'.

I tried swigging this method. My swigtest.i file is okay as I think
I have added both
- stl.i at top
- std_string.i

However, I am running into the problem. I get error messages as follows

-- error --
TypeError: argument number 1: a 'std::string&' is expected,
-- end error --
Mar 15 '07 #1
0 1152

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by It's me | last post: by
1 post views Thread by Leonard J. Reder | last post: by
5 posts views Thread by selder21 | last post: by
3 posts views Thread by sernamar | last post: by
reply views Thread by Amitabh Saikia | last post: by
2 posts views Thread by ragged_hippy | last post: by
1 post views Thread by Korara | last post: by
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.