Hello!

Sorry, it was a part of a bigger code, in the new attached archive i added a simple main.cc which can be compiled with: g++ $(pkg-config gtkmm-2.4 libcurl --libs --cflags) main.cc -o main
(if you want i can also add a makefile)

Thanks.
Regars,
Stefano

Il 09/12/2011 19:01, Milosz Derezynski ha scritto:
Hello,

Your testcase is broken, I was not able to compile it (I didn't edit any files), and details are missing:

- What is your version of gtkmm?

Please provide a code example that does compile; a makefile would make it perfect.

Regards
Milosz

On Fri, Dec 9, 2011 at 5:24 PM, Spazzatura.Live <[email protected] <mailto:[email protected]>> wrote:

    Probably this is more a libcurl question than a gtkmm one, but i
    saw an example in which a std::string works so:

    When i let curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION,
    writefunction), on my ustring:

       int writefunction(char *data, size_t size, size_t nmemb,
    Glib::ustring *buffer)
       {tow
           if(buffer!=NULL)
           {
               buffer->append(data, size*nmemb);
               return size*nmemb;
           }
           return 0;
       }

    it gives always a segmentation fault.

    Attached the code.

    _______________________________________________
    gtkmm-list mailing list
    [email protected] <mailto:[email protected]>
    http://mail.gnome.org/mailman/listinfo/gtkmm-list




--
Everything is Original.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to