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:

Qt Code:
  1. #include <mkdio.h>
To copy to clipboard, switch view to plain text mode 

and i have this piece of code:

Qt Code:
  1. MMIOT* document = 0;
  2. char* result;
  3. QString sourceMarkdown(markdown);
  4. if (!sourceMarkdown.endsWith('\n'))
  5. sourceMarkdown.append('\n');
  6. QByteArray data = sourceMarkdown.toUtf8();
  7. document = mkd_string(data,data.length(),MKD_NOPANTS);
  8. mkd_compile(document,MKD_NOPANTS);
  9. mkd_document(document,&result);
  10. QString renderedHtml = QString::fromUtf8(result);
  11. return renderedHtml;
To copy to clipboard, switch view to plain text mode 

usualy i use “-lmarkdown” flag to compile it (for discount shared library). but in Qt i dont know how.
i tried
Qt Code:
  1. QMAKE_LFLAGS += -lmarkdown
To copy to clipboard, switch view to plain text mode 

and

Qt Code:
  1. unix|win32: LIBS += -lmarkdown
To copy to clipboard, switch view to plain text mode 

but didn’t work.
any help?