From t.j.a.devries at gmail.com Wed Jun 9 03:56:44 2010 From: t.j.a.devries at gmail.com (Theo de Vries) Date: Wed Jun 9 13:57:22 2010 Subject: [xsde-users] new version coming up? Message-ID: Hi Boris, I have seen in the public git repository that you have been working on version 3.2. Just a modest information request (by no means want to nag you): is this version due to be released soon or is it planned further ahead? Regards, Theo. From boris at codesynthesis.com Wed Jun 9 16:14:50 2010 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Jun 9 14:04:14 2010 Subject: [xsde-users] new version coming up? In-Reply-To: References: Message-ID: Hi Theo, Theo de Vries writes: > I have seen in the public git repository that you have been working on > version 3.2. > Just a modest information request (by no means want to nag you): is > this version due to be released soon or is it planned further ahead? The XSD/e 3.2.0 release it tentatively scheduled for the end of September. However, if you need specific features from the development tree we can always build you a pre-release binary. Boris From abhijeet.thatte at gmail.com Thu Jun 10 12:42:35 2010 From: abhijeet.thatte at gmail.com (abhijeet thatte) Date: Thu Jun 10 14:29:27 2010 Subject: [xsde-users] XSDE using without IOSTREAM Message-ID: Hi, I am new to xsde tool. I have been using xsde for last couple of days with STL,IOSTREAM and EXCEPTIONS enabled. But I just realized that I may end up using it on a platform which does not support either of them. So, I tried to compile the demo examples without these options but they don?t work as the xml file parsing is based on IOSTREAM. There is another method ?document_pimpl:: parse (const void* data, size_t size, bool last)? which I need to call instead of ?document_pimpl::parse(std::istream&) ? from my application. Can anyone tell me what are the parameters (data, size, last) to be passed to the method? Thanks, Abhijeet From boris at codesynthesis.com Thu Jun 10 16:48:17 2010 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Jun 10 14:37:59 2010 Subject: [xsde-users] XSDE using without IOSTREAM In-Reply-To: References: Message-ID: Hi Abhijeet, abhijeet thatte writes: > I have been using xsde for last couple of days with STL,IOSTREAM and > EXCEPTIONS enabled. But I just realized that I may end up using it > on a platform which does not support either of them. > > So, I tried to compile the demo examples without these options but they > don?t work as the xml file parsing is based on IOSTREAM. Right, most of the examples assume that these options are enabled. There is, however, another example, called 'minimal', which shows how to perform parsing and serialization when the XSD/e runtime and the generated code are configured without the STL, C++ exception, and iostream enabled. > There is another method ?document_pimpl:: parse (const void* data, size_t > size, bool last)? which I need to call instead of > ?document_pimpl::parse(std::istream&) ? from my application. > > Can anyone tell me what are the parameters (data, size, last) to be > passed to the method? For more information on this see the Embedded C++/Parser Mapping Getting Started Guide, in particular Section 7.1, "Document Parser": http://www.codesynthesis.com/projects/xsde/documentation/cxx/parser/guide/index.xhtml#7.1 Boris From boris at codesynthesis.com Thu Jun 10 17:28:57 2010 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Jun 10 15:18:17 2010 Subject: [xsde-users] XSDE using without IOSTREAM In-Reply-To: References: Message-ID: Hi Abhijeet, In the future please keep your replies CC'ed to the xsde-users mailing list as discussed in the posting guidelines: http://www.codesynthesis.com/support/posting-guidelines.xhtml abhijeet thatte writes: > Hi Boris, > Thanks a lot !!! > I am using xsde tool on QNX 6.3 sdk. When I installed the tool independently > (without integrating with any other modules) on the build server at my work, > it worked perfectly with all 3 (IOSTREAM, STL, EXCEPTION) options enabled. > But when I integrated it with other modules of build server and use my own > rules to make a build it failed. It fails during the linking with other > modules. It gives me errors like > In function > `xsde::cxx::parser::validating::string_pimpl::_pre()': > undefined reference to "std::string::append(char > const*, unsigned)". > undefined reference to > `std::string::_S_empty_rep_storage'. > > I suppose I must be missing some standard c++ library to link. I am trying > to check what all libraries are linked when demo examples are built > which guarantees successful linking. Can you make out which library I might > be missing. This usually happens when you use gcc instead of g++ for linking. That is, when you link using g++, C++-specific libraries are linked in automatically. When you use gcc, it is assumed that you are building a C program. If that doesn't help, -lstdc++ is the standard C++ library that is probably missing, though there could be other "C++ support" libraries. To see which libraries are passed by the compiler driver (gcc or g++) to the linker you can use the -v option. Boris