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

36 views
Skip to first unread message

Matthew Kettlewell

unread,
Oct 20, 2013, 3:34:46 PM10/20/13
to mongoos...@googlegroups.com
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

Sergey Lyubka

unread,
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 mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages