This is the first time I am working with mongoose so don't know a lot about it.
Before I could start using mongoose as an embedded server for my project I thought it would be better if I just tried and ran and example first.
So I used hello.c, mongoose.c, and mongoose.h given on this page: https://code.google.com/p/mongoose/
but when I try to compile the code using GCC or G++ I get the following errors:
g++ -o server hello.c mongoose.c
/tmp/cc6d6YeG.o: In function `mg_start_thread':
mongoose.c:(.text+0x1432): undefined reference to `pthread_create'
/tmp/cc6d6YeG.o: In function `load_dll(mg_context*, char const*, ssl_func*)':
mongoose.c:(.text+0xbdde): undefined reference to `dlopen'
mongoose.c:(.text+0xbe42): undefined reference to `dlsym'
I don't know where I went wrong and what must be done in order to solve this problem.
OS in use: Linux Mint Rairing Ringtail