[xsd-users] Compiling GML/CityGML (was: First question)
jaume.faus at vianova.no
jaume.faus at vianova.no
Tue Feb 10 08:31:53 EST 2009
Yep, that was a solution. No I can compile. Thanks!
However I still having some warnings even though I added the XML_LIBRARY
macro at preprocessor definitions (I read it on the Xerces Tips wiki:
http://wiki.codesynthesis.com/Xerces_tips ). I'm using the C:\Program
Files\CodeSynthesis XSD 3.2\lib\vc-8.0\xerces-c_3.lib file as a
dependency.
At least I got the dll! This is the output
1>------ Build started: Project: GML3, Configuration: Release Win32 ------
1>Linking...
1>Generating code
1>Finished generating code
1>valueObjects.obj : warning LNK4248: unresolved typeref token (0100001B)
for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>units.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>topology.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>temporalTopology.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>temporalReferenceSystems.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>temporal.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>smil20-language.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>smil20.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>referenceSystems.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>observation.obj : warning LNK4248: unresolved typeref token (0100001B)
for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>measures.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>grids.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>gmlBase.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>geometryPrimitives.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>geometryComplexes.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>geometryBasic2d.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>geometryBasic0d1d.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>geometryAggregates.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>feature.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>dynamicFeature.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>direction.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>dictionary.obj : warning LNK4248: unresolved typeref token (0100001B)
for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>defaultStyle.obj : warning LNK4248: unresolved typeref token (0100001B)
for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>datums.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>dataQuality.obj : warning LNK4248: unresolved typeref token (0100001B)
for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>coverage.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>coordinateSystems.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>coordinateReferenceSystems.obj : warning LNK4248: unresolved typeref
token (0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>coordinateOperations.obj : warning LNK4248: unresolved typeref token
(0100001B) for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>basicTypes.obj : warning LNK4248: unresolved typeref token (0100001B)
for 'xercesc_3_0.DOMUserDataHandler'; image may not run
1>xml-mod.obj : warning LNK4248: unresolved typeref token (0100001B) for
'xercesc_3_0.DOMUserDataHandler'; image may not run
1>basicTypes.obj : warning LNK4248: unresolved typeref token (0100001F)
for 'xercesc_3_0.XMLGrammarPool'; image may not run
1>Embedding manifest...
1>Build log was saved at "file://c:\GML3\GML3\Release\BuildLog.htm"
1>GML3 - 0 error(s), 32 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped
==========
It looks like this is the last thing to solve. After seeking info I've
read that it can be due to xerces library has not been built using /clr
option (which is something comprehensible). So I had to remove any CLR
reference in my code and finally it compiled gracefully. Thanks Boris! Now
it is time to give it the semantics.
So, last question would be: what if I want to have CLR support? The target
application is a mixture of all MS's .Net languages. The only way to
solve this that comes into my mind is to get xerces source code and compil
it in VS. But I have only a couple of weeks experience in this VS world.
Is there any other way?
Sorry for this question bombing. I promise that I try to fix it by my self
and try to find information without disturb anyone.
Thank's
From:
Boris Kolpackov <boris at codesynthesis.com>
To:
jaume.faus at vianova.no
Cc:
xsd-users at codesynthesis.com
Date:
10.02.2009 12:00
Subject:
Re: [xsd-users] Compiling GML/CityGML (was: First question)
Hi Jaume,
jaume.faus at vianova.no <jaume.faus at vianova.no> writes:
> 1>mfcs80u.lib(dllmodul.obj) : error LNK2005: _DllMain at 12 already defined
> in MSVCRT.lib(dllmain.obj)
>
> [...]
>
> It would be so helpful if someone knows what I'm doing wrong.
I am not sure what's wrong but I doubt it is related to XSD or
the generated code. Looks like you are linking to conflicting
DLLs. I suggest that for starters you try to create a plain
Win32 DLL (not an MFC DLL) and add the generated code (and the
Xerces-C++ dependency) to it. We have tested this and didn't
run into any problems.
Boris
More information about the xsd-users
mailing list