English 中文(简体)
QT CMarkUp(XMLParser)差错。 iconv.h: 无此类档案或主任
原标题:QT CMarkUp(XMLParser) error . iconv.h: no such file or director

enter image description hereHi 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

iconv.h: no such file or director
expected; before cd , etc.

我检查了MArkup网站。

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

我尝试了一切,但仍然存在。 谁会遇到类似的问题,帮助我解决这一问题。

最佳回答

请将此定义添加到您身上。 Qt项目,在您的档案中添加这一条:

QMAKE_CXXFLAGS += -DMARKUP_STDCONV
问题回答

暂无回答




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签