[xsd-users] Output location and symbol conflicts.

Daniel.roy.Kaasa at kongsberg.com Daniel.roy.Kaasa at kongsberg.com
Wed Feb 9 04:25:40 EST 2011


Hi Boris,

I am trying to solve two problems which I haven't find a solution for (please correct me if I am way off course).

1. I would like to have XSD generate the output for two differently located paths, (.h) files in one location and (.cpp) in another. For example, my project is structured as so ./cpp/include/gml (.h) and ./cpp/gml/generated (cpp). Currently I am using regex options to modify the include statements and executing a perl script to move the files explicitly and this is tedious. It would be nice if it were possible to have a switch for specifying --output-h-dir and --output-c-dir. In addition that the includes were prefixed to reflect the header file locations.

2. My projects are partitioned with dynamic libraries, but my problem is specifically with DLLs on windows. I have followed the documentation for exporting and importing, using the options --import-maps and --export-maps. However I am running into problems symbols conflicts with the xml_schema::simple_type<> being defined across several dlls. For example I am importing symbols from dlls which contain generated parsers into other dependent dlls of parsers.

xlink.dll <--gml.dll <--filter.dll

Daniel
__________________________________________________________________________
Daniel R. Kåsa, Kongsberg Defence & Aerospace, P. O. Box 1003, 3601 Kongsberg, Norway
Email: daniel.roy.kaasa at kongsberg.com Tlf (+47) 32 28 89 78, (+47) 32 73 34 43


www.kongsberg.com


CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be proprietary, confidential or subject to export regulations, and is only meant for the intended recipient(s). Any disclosure, copying, distribution or use is prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in error, please delete it immediately from your system and notify the sender properly.



More information about the xsd-users mailing list