void Test2(const std::wstring& wstrSource)
{
wprintf(L"Test2: %sn", wstrSource.c_str());
}
I want to use wstring in SWIG in PHP but has problem including std_basic_string.i with syntax error in line 44 (SWIG 4.2.1) directory std:
%traits_swigtype(_CharT);
My example.i:
/* File : example.i */
%module example
%{
#include "example.h"
%}
%include std_wstring.i
%include "example.h"
I searched in Google and Stackoverflow but found no results. How could I fix this error?
SWIG help