compling error on libmicrohttpd using ld -
compling error on libmicrohttpd using ld -
http://www.gnu.org/s/libmicrohttpd/tutorial.html#hello-browser-example
gcc helloworld.c -lmicrohttpd -i/opt/local/include/
helloworld.c: in function ‘answer_to_connection’: helloworld.c:18: warning: incompatible implicit declaration of built-in function ‘strlen’ ld: library not found -lmicrohttpd collect2: ld returned 1 exit status
i using snow leopard latest xcode , installed libmicrohttpd using macports
never used osx need like: -l/opt/local/lib
check lib resides.. linked docs says -l$path_to_libmhd_includes
ld
Comments
Post a Comment