ErikMinekus / sm-ripext

SourceMod REST in Pawn Extension
https://forums.alliedmods.net/showthread.php?t=298024
GNU General Public License v3.0
136 stars 38 forks source link

Fails to build, no member 'chars' #42

Closed PeakKS closed 3 years ago

PeakKS commented 3 years ago

Failing to build httpclient.cpp at HTTPRequest::BuildHeaders https://github.com/ErikMinekus/sm-ripext/blob/f50b9e4ffc8c74dec5cec7b9a734ad860aefffe1/httprequest.cpp#L106 with error:


/home/peak/alliedmodders/sourcemod/extensions/sm-ripext/httpclient.cpp:48:56: error: no member named 'chars' in 'std::__cxx11::basic_string<char>'
                snprintf(header, sizeof(header), "%s: %s", iter->key.chars(), iter->value.c_str());
                                                           ~~~~~~~~~ ^
1 error generated.```
ErikMinekus commented 3 years ago

You need to change chars to c_str, or build against the 1.10-dev SourceMod branch.