He means this:
$ cc mongoose.c main.c -o app
main.c: In function ‘main’:
main.c:3:30: warning: initialization makes pointer from integer without a
cast [enabled by default]
struct mg_server *server = mg_create_server(NULL);
^
/tmp/ccsmxI2D.o: In function `mg_start_thread':
mongoose.c:(.text+0x130c): undefined reference to `pthread_create'
/tmp/ccsmxI2D.o: In function `load_dll':
mongoose.c:(.text+0xb6d1): undefined reference to `dlopen'
mongoose.c:(.text+0xb730): undefined reference to `dlsym'
/tmp/ccsLJhGQ.o: In function `main':
main.c:(.text+0x13): undefined reference to `mg_create_server'
main.c:(.text+0x34): undefined reference to `mg_set_option'
main.c:(.text+0x4f): undefined reference to `mg_set_option'
main.c:(.text+0x65): undefined reference to `mg_poll_server'
collect2: error: ld returned 1 exit status
On Saturday, December 7, 2013 4:59:09 AM UTC-5, Sergey Lyubka wrote:
>
> Could you elaborate on what is wrong, please?
>
> If you use HEAD version of the git repo, everything works as expected.
> "cd examples && make" builds all examples, including hello.c with no
> errors/warnings.
> Compiled hello.c also works as expected.
>
>
> On Sat, Dec 7, 2013 at 4:00 AM, Antonws <[email protected] <javascript:>>wrote:
>
>> Hi.
>> Files of API mongoose.h and mongoose.c are incompatible with an example
>> of hello.c.
>> There is wrong order of parameters and some other errors.
>> Can you please provide a working example of simple "hello mongoose"
>> program that embeds API files?
>>
>> Thank in advance,
>>
>> --
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/mongoose-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.