Error compiling SWIG wrapper
<p>I'm trying to wrap some C++ functions in Python using SWIG. Following the tutorial, I wrote an interface file</p>

<pre><code>%module rasnetclient
%{
#include "rasnetclientcomm.hh"
%}
RasnetClientComm(std::string rasmgrHost, int rasmgrPort);
RasnetClientCommDestroy();

int connectClient(std::string userName, std::string passwordHash);
int disconnectClient();
</code></pre>

<p>and generated a wrapper. However, when I try to compile it using <code>g++ -c -std=c++0x rasnetclientcomm.cc rasnetclient_wrap.c -I /usr/include/python2.7</code> I get the following errors:</p>

<pre><code>rasnetclient_wrap.c: In function 'PyObject* _wrap_connectClient(PyObject*, PyObject*)':
rasnetclient_wrap.c:3383:40: error: 'connectClient' was not declared in this scope
rasnetclient_wrap.c: In function 'PyObject* _wrap_disconnectClient(PyObject*, PyObject*)':
rasnetclient_wrap.c:3396:34: error: 'disconnectClient' was not declared in this scope
</code></pre>

<p>Am I doing something wrong with the definition of the interface file? Any help would be appreciated.</p>