yanivnizry / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Make mongoose example failed #353

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get the newest souce code from mongoose.
2. Compile the souce code under the directory "mongoose/examples"

What is the expected output?
The excutable binary "chat" was created
What do you see instead?
Compile error and excutable binary "chat" was created, but hello could
be created.
cc -W -Wall -I.. -pthread -g chat.c ../mongoose.c  $LIBS  -o chat
/tmp/ccV4LqMt.o: In function `load_dll':
/root/rgu/webserver/mongoose/examples/../mongoose.c:3673: undefined reference 
to `dlopen'
/root/rgu/webserver/mongoose/examples/../mongoose.c:3685: undefined reference 
to `dlsym'
collect2: ld returned 1 exit status

What version of the product are you using? On what operating system?
mongoose-3.1

Please provide any additional information below.

Original issue reported on code.google.com by mingji...@gmail.com on 9 May 2012 at 5:53

GoogleCodeExporter commented 8 years ago
Is this related to issue #347, "Missing a backslash in /examples/Makefile"?

Original comment by tay.stu...@gmail.com on 15 May 2012 at 4:52

GoogleCodeExporter commented 8 years ago
I believe this is fixed, Makefile changed to add -ldl.

Original comment by valenok on 6 Jun 2012 at 6:02

GoogleCodeExporter commented 8 years ago
I have just downloaded the latest version (3.7 on Linux) and I am have this 
exact problem. 

Original comment by robynhaj...@gmail.com on 24 Apr 2013 at 7:05