Hello -
I'm new to mongoose, and trying to get compilation established with C++, but I seem to be running into an issue with C++ thinking that the struct ssl_func ssl_sw is being redeclared.
Mongoose version 4.2
gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC)
My command line:
g++ -W -Wall -I. -DNDEBUG -Os mongoose.c httpserver.cpp main.cpp -fpermissive -Wunused-parameter -static-libgcc -static-libstdc++ -o goose
mongoose.c:1905:31: error: redefinition of ‘ssl_func ssl_sw []’
static struct ssl_func ssl_sw[] = {
^
mongoose.c:326:24: error: ‘ssl_func ssl_sw [30]’ previously declared here
static struct ssl_func ssl_sw[30];
Any assistance would be greatly appreciated.
Matt