[SOLVED] Problem using discount library

  • i'm working on project that uses discount library.
    i installed the library on my machine and included:
    #include <mkdio.h>
    and i have this piece of code:
    MMIOT* document = 0;
    char* result;
    QString sourceMarkdown(markdown);
    if (!sourceMarkdown.endsWith('\n'))
    QByteArray data = sourceMarkdown.toUtf8();
    document = mkd_string(data,data.length(),MKD_NOPANTS);
    QString renderedHtml = QString::fromUtf8(result);
    return renderedHtml;

    usualy i use "-lmarkdown" flag to compile it (for discount shared library). but in Qt i dont know how.
    i tried
    @QMAKE_LFLAGS += -lmarkdown@
    but didn't work.
    any help?

  • Lifetime Qt Champion


    @LIBS += -lmarkdown@

    Is the right place

  • thank's i solved the problem.
    i used
    @extern "C" {
    #include <mkdio.h>
    wasn't a Qt related issue at the end.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.