[xsd-users] Compiling XSD with Qt Creator (Qt v4.6)
Boris Kolpackov
boris at codesynthesis.com
Wed May 5 16:06:15 EDT 2010
Hi Jim,
Jim Pacyga <jim.pacyga at control-pt.com> writes:
> If it helps, the following lists my "main.cpp" file (which does
> nothing but include my generated class) and the Qt .pro file.
> You should easily be able to reproduce this (using your own
> generated .h file from XSD) using Qt Creator.
I tried your project but apparently I need a Qt SDK to build
anything with Qt Creator (I only downloaded the IDE). So I
am getting the whole thing now. I have some suggestions in
the meantime:
> INCLUDEPATH += "C:\Program Files\CodeSynthesis XSD 3.3\include" \
> "C:\Program Files\CodeSynthesis XSD 3.3\xerces-c-3.1.1\src"
I don't know if you installed Xerces-C++ headers when installing
XSD-3.3.msi. If you did then they will be placed into the include
directory and the C++ compiler will pick them up instead of the
ones from the second path. This would be consistent with the errors
that you get (those headers would cause the symbols to be DLL-imported).
If that's the case, try to put the xerces-c-3.1.1\src path first or
uninstall the Xerces-C++ headers.
Boris
More information about the xsd-users
mailing list