ssl_func ssl_sw[ ] previous declaration when compiling with g++

Skip to first unread message

Matthew Kettlewell

Oct 20, 2013, 3:34:46 PM10/20/13
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.


Sergey Lyubka

Nov 1, 2013, 6:12:05 PM11/1/13
to mongoose-users
That has been fixed recently.

You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Reply all
Reply to author
0 new messages