<br><br><div><span class="gmail_quote">On 1/12/06, <b class="gmail_sendername">Till Adam</b> <<a href="mailto:adam@kde.org">adam@kde.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 12 January 2006 07:04, Aditya Mooley wrote:<br>> On 1/11/06, Till Adam <<a href="mailto:adam@kde.org">adam@kde.org</a>> wrote:<br>> > On Wednesday 11 January 2006 13:37, Pradeepto Bhattacharya wrote:
<br><br>> Here's what I am trying to do:<br>><br>> QByteArray array;<br>> QBuffer buffer(array);<br>> QTextStream textStream(&buffer);<br>> textStream.setEncoding(QTextStream::UnicodeUTF8);<br>> textStream << dd << boundary << crlf;
<br>> ......<br>> buffer.close();<br>> KIO::TransferJob *job = KIO::http_post(url, array, false);<br>> job->addMetaData("content-type", "Content-Type: multipart/form-data;<br>> boundary=" + boundary);
<br>><br>> I have include kio/job.h to get the KIO namespace.<br>> But I am getting following warning:<br>><br>> undefined reference to `KIO::http_post(KURL const&, QMemArray<char> const&,<br>
> bool)'<br>> undefined reference to `KIO::Job::addMetaData(QString const&, QString<br>> const&)'<br>><br>> The second argument required for http_post should be of type QByteArray and<br>> my variable array is of that type but still it is considered as an object
<br>> of QMemArray.<br><br>QByteArray in Qt3 is simply QMemArray<char> so that's fine. This is compile<br>time, not link time? Can you post the full error for the first one, please?</blockquote><div><br>
True :) it was a linking error. I had not added -lkio while linking. Pradeepto helped me on that one via IRC.<br>
<br>
Regards, <br>
</div><br></div><br>-- <br>Aditya Mooley<br>=============================================================<br>PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com</a><br>Coppermine Picture Gallery:
<a href="http://coppermine.sf.net">http://coppermine.sf.net</a><br>=============================================================