Comment 1 for bug 1001576

Revision history for this message
Julian Taylor (jtaylor) wrote : Re: Error linking with libcurl4-gnutls-dev 7.22.0-3ubuntu4

since 11.10 shared libraries must be placed behind objects needing their symbols (as it was always the case for static libraries)
this due to the linker flag --as-needed being default now.

the correct compile line is:
`curl-config --cc --cflags` -o simple simple.c `curl-config --libs`