On Mon, 14 Jun 2010, Chitra Nanda wrote:
If I try to link the library dynamically at compile time then I don't run
into any issues. But if I try to link it at runtime I run into issues.
I strongly advice against doing that. dlopening a versioned library such as
libcurl will lead to breakage sooner or later. And it is rarely any benefit.
CURLcode ( *fptr2 )( CURL* );
*( void ** )( &fptr2 ) = dlsym( sdl_library,
"curl_easy_perform" );
I'd say that's one of the most ugly forms of typecast you can do. But forgive
me if I misunderstood something here, that line doesn't _call_
curl_easy_perform() it just looks it up, right?
So where is the call to curl_easy_perform() ?
And besides that, you should consider using a debug version of the library so
that you get full symbols and everything for when you try to debug it.
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html