Hi All, I have stuck in an error for a long time and cant figure out what it is . I am using CMarkup class (xml Parser) for parsing XML files which works perfectly in VC++ . When I move that into QT it started throwing some strange error which is hard for me to fix.It says
嗨,大家好,我一直犯错误,搞不清楚是怎么回事。我正在使用CMarkup类(xml解析器)解析xml文件,它在vc++中非常有效。当我把它移到QT时它开始抛出一些奇怪的错误,我很难修正。它说
iconv.h: no such file or director
expected; before cd , etc.
I checked the CMArkup website where it says
我查了CMArkup网站,上面写着
The MARKUP_ICONV mode is currently automatically selected in g++ based on the GNUC predefined macro. Again, you can turn off iconv usage by adding MARKUP_STDCONV to your project preprocessor definitions, or on the command line with -DMARKUP_STDCONV. g++ main.cpp Markup.cpp MarkupTest.cpp -DMARKUP_STDCONV
MARKUP_ICONV模式目前是基于GNUC预定义宏在g++中自动选择的。同样,您可以通过在项目预处理器定义中添加MARKUP_STDCONV或在命令行中使用-DMARKUP_STDCONV来关闭iconv的使用。g++主要。cpp的标记。cpp MarkupTest。cpp -DMARKUP_STDCONV
I tried everything but still probem exist. Have anyone got into similar problem who can help me fixing this .
我什么都试过了,但仍然存在。有谁遇到过类似的问题谁能帮我解决这个问题。
1 个解决方案
#1
0
If you want to add the definition to your Qt project, add this line to your .pro file:
如果您想将定义添加到Qt项目中,请将这一行添加到.pro文件中:
QMAKE_CXXFLAGS += -DMARKUP_STDCONV
#1
0
If you want to add the definition to your Qt project, add this line to your .pro file:
如果您想将定义添加到Qt项目中,请将这一行添加到.pro文件中:
QMAKE_CXXFLAGS += -DMARKUP_STDCONV