Yes, already added Mongoose.c file and mongoose.h file. Both the files and hello.c are in the same folder.
On Monday, 23 June 2014 14:03:46 UTC+5:30, Sergey Lyubka wrote: > > You need to add mongoose.c to the compilation > > > On Mon, Jun 23, 2014 at 9:15 AM, Jijo Thomas <[email protected] > <javascript:>> wrote: > >> I am new in Mongoose server. My doubt is how to run mongoose server in my >> mac. I want to run it from terminal. i am trying to load hello.c in the >> example project that you have given with gcc compiler, but fail to run. >> Please find the error that i get when i run "gcc hello.c" in terminal. >> Please help me >> >> Undefined symbols for architecture x86_64: >> "_mg_add_uri_handler", referenced from: >> _main in hello-e35d38.o >> "_mg_create_server", referenced from: >> _main in hello-e35d38.o >> "_mg_get_option", referenced from: >> _main in hello-e35d38.o >> "_mg_poll_server", referenced from: >> _main in hello-e35d38.o >> "_mg_printf_data", referenced from: >> _index_html in hello-e35d38.o >> "_mg_set_option", referenced from: >> _main in hello-e35d38.o >> ld: symbol(s) not found for architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> >> -- >> 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/d/optout. >> > > -- 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/d/optout.
