Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#364 API change for mg_set_option in Mongoose

1.0.0.0
closed-fixed
Nikolay
None
5
2014-04-23
2014-04-23
Anonymous
No
./src/webserver.cpp: In member function virtual void* WebServerThread::Entry():
./src/webserver.cpp:86:52: error: cannot convert wxString to const char* for argument 3 to const char* mg_set_option(mg_server*, const char*, const char*)
     mg_set_option(server, "listening_port", strPort);
                                                    ^
./src/webserver.cpp:87:76: error: cannot convert wxString to const char* for argument 3 to const char* mg_set_option(mg_server*, const char*, const char*)
     mg_set_option(server, "document_root", mmex::GetResourceDir().GetPath());
                                                                            ^
Makefile:600: recipe for target 'mmex_webserver.o' failed

A patch is included, calling wxString.mb_str().

1 Attachments

Discussion

  • Nikolay
    Nikolay
    2014-04-23

    • status: open --> closed-fixed
    • assigned_to: Nikolay
     


Anonymous


Cancel   Add attachments