Quote Originally Posted by kerim View Post
here is the answer to the problem from above i got from the firstobject.com website support, and its sad to see that others only know to post questions here but no answers if they got them already:


Thanks for writing.

I recently worked this out with a user (possibly with the user who posted at the website you linked). He succeeded in making it work, but did not respond with the precise measures he used. I can give you the same suggestions I gave him. Please respond with exactly how you get it to work!

In general the problem is that QT uses GNUC but has some differences on Windows from what I assume for GNUC.

First of all CMarkup is defaulting to MARKUP_ICONV which is not available on Windows, so set a precompiler definition to either MARKUP_WINCONV or MARKUP_STDCONV. I see some mention of adding something to your .pro file:

DEFINES+=MARKUP_STDCONV

The fseeko and ftello problem is solved by changing Markup.h:218 to

#if defined(__GNUC_ZNIX__)

so that it will actually define MCD_FSEEK as fseek etc.

For the swprintf problem, find the following in Markup.h:

#if defined(__GNUC__)
#define MCD_SSZ(sz) sz,(sizeof(sz)/sizeof(MCD_CHAR))

And change the __GNUC__ to __GNUC_ZNIX__ as follows:

#if defined(__GNUC_ZNIX__)
#define MCD_SSZ(sz) sz,(sizeof(sz)/sizeof(MCD_CHAR))


cheers

Sorry for the very late reply .Firstobject guys were very helpful in fixing this . I forgot to post the answer that I got from them here. But I updated it in the stackoverflow website same time.
http://stackoverflow.com/questions/5...le-or-director
d