[xsd-users] FpML 5.1

Mike.Ampleford at barclayscapital.com Mike.Ampleford at barclayscapital.com
Tue Jan 25 08:09:26 EST 2011


Hi,

I am trying to build the C++ objects for the FpML 5.1 Last Call Working Draft on linux.

I have the following properties set:

--generate-polymorphic
--root-element FpML
--namespace-map http://www.fpml.org/2009/FpML-5-1=FpML_5_1
--namespace-map http://www.w3.org/2000/09/xmldsig#=XMLDSig
--polymorphic-type Product
--polymorphic-type Rate
--polymorphic-type PricingStructure
--polymorphic-type PricingStructureValuation
--polymorphic-type Portfolio


However, loads of the source files are failing to build with the following error:


    Compiling fpml-collateral-processes-5-1.cxx at 12:51:41
       g++ -c -Wall   -U_POSIX_C_SOURCE -U_XOPEN_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__MT__ -D_MT -D_FILE_OFFSET_BITS=64 -feliminate-unused-debug-symbols -feliminate-unused-debug-types -g -m32 -finline-functions -DMEASURE_PERFORMANCE -DUSE_NS_CCACHE_STATIC -I/vobs/FO_FOX/fo_fx_fox/appl/include -I/vobs/FO_FOX/fo_fx_fox/appl.tercel/cplusplus/include -DDISABLE_SYBASE -DUSING_NAMESPACE_STD   -DLDAP_DEPRECATED   -Wno-deprecated -DMEASURE_PERFORMANCE  fpml-collateral-processes-5-1.cxx -o fpml-collateral-processes-5-1.o
fpml-mktenv-5-1.hxx:547: error: invalid use of undefined type 'struct reporting::PricingStructureValuation'
fpml-riskdef-5-1.hxx:250: error: forward declaration of 'struct reporting::PricingStructureValuation'
fpml-mktenv-5-1.hxx:664: error: invalid use of undefined type 'struct reporting::PricingStructureValuation'
fpml-riskdef-5-1.hxx:250: error: forward declaration of 'struct reporting::PricingStructureValuation'
fpml-mktenv-5-1.hxx:870: error: invalid use of undefined type 'struct reporting::PricingStructureValuation'
fpml-riskdef-5-1.hxx:250: error: forward declaration of 'struct reporting::PricingStructureValuation'
fpml-mktenv-5-1.hxx:1012: error: invalid use of undefined type 'struct reporting::QuotedAssetSet'
fpml-riskdef-5-1.hxx:251: error: forward declaration of 'struct reporting::QuotedAssetSet'
fpml-mktenv-5-1.hxx:2231: error: invalid use of undefined type 'struct reporting::PricingStructureValuation'
fpml-riskdef-5-1.hxx:250: error: forward declaration of 'struct reporting::PricingStructureValuation'
fpml-mktenv-5-1.hxx:2433: error: invalid use of undefined type 'struct reporting::PricingStructureValuation'
fpml-riskdef-5-1.hxx:250: error: forward declaration of 'struct reporting::PricingStructureValuation'
/vobs/FO_FOX/fo_fx_fox/appl/include/xsd/cxx/tree/containers.txx: In member function 'void xsd::cxx::tree::optional<T, false>::set(std::auto_ptr<_Tp1>) [with T = reporting::DefaultProbabilityCurve]':
fpml-mktenv-5-1.ixx:434:   instantiated from here
/vobs/FO_FOX/fo_fx_fox/appl/include/xsd/cxx/tree/containers.txx:194: error: 'class reporting::DefaultProbabilityCurve' has no member named '_container'
/vobs/FO_FOX/fo_fx_fox/appl/include/xsd/cxx/tree/containers.txx:195: error: 'class reporting::DefaultProbabilityCurve' has no member named '_container'
/vobs/FO_FOX/fo_fx_fox/appl/include/xsd/cxx/tree/containers.txx: In member function 'void xsd::cxx::tree::optional<T, false>::set(std::auto_ptr<_Tp1>) [with T = reporting::FxRateSet]':
fpml-mktenv-5-1.ixx:793:   instantiated from here
/vobs/FO_FOX/fo_fx_fox/appl/include/xsd/cxx/tree/containers.txx:194: error: 'class reporting::FxRateSet' has no member named '_container'
/vobs/FO_FOX/fo_fx_fox/appl/include/xsd/cxx/tree/containers.txx:195: error: 'class reporting::FxRateSet' has no member named '_container'
*** Error code 1
clearmake: Error: Build script failed for "fpml-collateral-processes-5-1.o"


This suggests that there are problems with the order in which things are being included in the generated code, I guess stemming from the XSD import statements.

Has anybody managed to build this version successfully? If so...how???

Thanks.



 Last Call Working Draft

_______________________________________________

This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays Group.
_______________________________________________


More information about the xsd-users mailing list