On Mon, 20 Feb 2006, Matthew "Zashi" Hiles wrote:
> /tmp/fakeroot/curl-7.15.1/lib/transfer.c:2226: undefined reference to > `__imp__curl_easy_strerror'
Allow me to quote the FAQ (http://curl.haxx.se/docs/faq.html#5.7)
When building an application that uses the static libcurl library, you must add -DCURL_STATICLIB to your CFLAGS. Otherwise the linker will look for dynamic import symbols. If you get linker error like "unknown symbol __imp__curl_easy_init ..." you have linked against the wrong (static) library. If you want to use the libcurl.dll and import lib, you don't need any extra CFLAGS, but use one of the import libraries below.
In the process of learning tinyos i have discovered that I am totally clueless about makefiles.
there are many optional compile time features that can be used by way of declaring preprocessor variables
to use them you have to do things like
CFLAGS="-DPACKET_LINK" this enables a certain feature.
and CFLAGS="-DPACKET_LINK" "-DLOW_POWER" enables two features.
can someone dissect these lines for me and tell me whats going on? Not in terms of tinyos, but in terms of makefiles!
Thanks!