[SOLVED] Problem using discount library
-
i'm working on project that uses discount library.
http://www.pell.portland.or.us/~orc/Code/discount/
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'))
sourceMarkdown.append('\n');
QByteArray data = sourceMarkdown.toUtf8();
document = mkd_string(data,data.length(),MKD_NOPANTS);
mkd_compile(document,MKD_NOPANTS);
mkd_document(document,&result);
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? -
Hi
@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.