From Nicolas.FLACHET at cstb.fr Thu Oct 12 11:37:04 2017 From: Nicolas.FLACHET at cstb.fr (FLACHET Nicolas) Date: Thu Oct 12 11:37:18 2017 Subject: [xsd-users] g++ or clang errors Message-ID: <30acfc2a8765464bb597575638b5237f@Lizherel.cstb.local> Hello, I'm new with xsd and I'm having a strange issue that I could not understand. I'm currently trying to do the following with xsd parser : - generate c++11 classes < with xsd cxx-tree > from a Windows environnemment. - Use those generated cxx/hxx files on Windows to generate libraries on all plateform, including linux and Mac On Windows the generation works fine, but on linux & mac I found two problems in my generation : - lower case string in #includes although relative paths has upper cases - error: a space is required between consecutive right angle brackets (use '> >') I don't know what I'm doing wrong or if someone already had this problem ? For information, I'm using xsd 4.0 Regards, Nicolas From boris at codesynthesis.com Fri Oct 13 06:37:44 2017 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Oct 13 06:37:54 2017 Subject: [xsd-users] g++ or clang errors In-Reply-To: <30acfc2a8765464bb597575638b5237f@Lizherel.cstb.local> References: <30acfc2a8765464bb597575638b5237f@Lizherel.cstb.local> Message-ID: FLACHET Nicolas writes: > On Windows the generation works fine, but on linux & mac I found two problems in my generation : > > - lower case string in #includes although relative paths has upper cases There were a few issues in this area that have been fixed for the next release. Can you try the latest pre-release and see if it makes a difference: http://codesynthesis.com/~boris/tmp/xsd/4.1.0.a11/ > - error: a space is required between consecutive right angle brackets > (use '> >') Have you enabled the C++11 mode (-std=c++11) when compiling with g++ or clang++? Boris From Nicolas.FLACHET at cstb.fr Mon Oct 23 09:12:17 2017 From: Nicolas.FLACHET at cstb.fr (FLACHET Nicolas) Date: Mon Oct 23 09:12:32 2017 Subject: [xsd-users] g++ or clang errors In-Reply-To: References: <30acfc2a8765464bb597575638b5237f@Lizherel.cstb.local> Message-ID: <74bbb99b06a9405cb0f6b3b4737deccd@Lizherel.cstb.local> Hello Boris, Thanks to the update I've got a working library for linux & mac. I still have some warnings that I write below in case it could be helpful for you : * waring : in "auto-ptr.hxx", right angle brackets (use '> >') * warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression] if (typeid (WindowType::_GenericApplicationPropertyOfWindow_type) == typeid (*b)) Thanks again ! Nicolas. -----Message d'origine----- De?: Boris Kolpackov [mailto:boris@codesynthesis.com] Envoy??: vendredi 13 octobre 2017 12:38 ??: FLACHET Nicolas Cc?: xsd-users@codesynthesis.com Objet?: Re: [xsd-users] g++ or clang errors FLACHET Nicolas writes: > On Windows the generation works fine, but on linux & mac I found two problems in my generation : > > - lower case string in #includes although relative paths has upper > cases There were a few issues in this area that have been fixed for the next release. Can you try the latest pre-release and see if it makes a difference: http://codesynthesis.com/~boris/tmp/xsd/4.1.0.a11/ > - error: a space is required between consecutive right angle brackets > (use '> >') Have you enabled the C++11 mode (-std=c++11) when compiling with g++ or clang++? Boris