From boris at codesynthesis.com Mon Apr 3 09:42:10 2023 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 3 09:34:19 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Paul McGrath writes: > AssociationDetails_lib:: > AssociationDetails_lib (std::unique_ptr< value_type > p) > : value_ (p, 0) > { > } This appears to have been fixed in the development version (the code now calls std::move(), as one would expect). You can get the version with a fix by following these instructions: https://codesynthesis.com/products/xsd/doc/install-build2.xhtml From paul.s.mcgrath at gmail.com Mon Apr 3 10:15:42 2023 From: paul.s.mcgrath at gmail.com (Paul McGrath) Date: Tue Apr 4 02:14:48 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Thanks, I'll check it out. On Mon., Apr. 3, 2023, 9:42 a.m. Boris Kolpackov, wrote: > Paul McGrath writes: > > > AssociationDetails_lib:: > > AssociationDetails_lib (std::unique_ptr< value_type > p) > > : value_ (p, 0) > > { > > } > > This appears to have been fixed in the development version (the code > now calls std::move(), as one would expect). You can get the version > with a fix by following these instructions: > > https://codesynthesis.com/products/xsd/doc/install-build2.xhtml > From paul.s.mcgrath at gmail.com Tue Apr 4 09:00:32 2023 From: paul.s.mcgrath at gmail.com (Paul McGrath) Date: Wed Apr 5 08:00:47 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Hello Boris, I went through the installation of build2 and received the following: warning: authenticity of the certificate for repository pkg:cppget.org/alpha cannot be established certificate is for **cppget.org, "Code Synthesis" certificate SHA256 fingerprint: 70:64:FE:E4:E0:F3:60:F1:B4:51:E1:FA:12:5C:E0:B3:DB:DF:96:33:39:B9:2E:E5:C2:68:63:4C:A6:47:39:43 trust this certificate? [y/n] I also ran the xsd build and got a similar question: C:\xsd-build\xsd-msvc>bpkg build xsd@https://pkg.cppget.org/1/beta added pkg:cppget.org/beta fetching pkg:cppget.org/beta warning: authenticity of the certificate for repository pkg:cppget.org/beta cannot be established certificate is for **cppget.org, "Code Synthesis" certificate SHA256 fingerprint: 70:64:FE:E4:E0:F3:60:F1:B4:51:E1:FA:12:5C:E0:B3:DB:DF:96:33:39:B9:2E:E5:C2:68:63:4C:A6:47:39:43 trust this certificate? [y/n] Finally, the test brought up this error: C:\xsd-build\xsd-msvc>bpkg test xsd c++ libicui18n-65.1.0+6\libicui18n\i18n\cxx{fmtable} C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\fmtable.cpp(59): error C2666: 'icu_65::Measure::operator ==': overloaded functions have similar conversions C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\unicode/measure.h(90): note: could be 'UBool icu_65::Measure::operator ==(const icu_65::UObject &) const' C:\xsd-build\xsd-msvc\libicuuc-65.1.0+6\libicu/uc\unicode/stringpiece.h(242): note: or 'UBool icu_65::operator ==(const icu_65::StringPiece &,const icu_65::StringPiece &)' C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\unicode/measure.h(90): note: or 'UBool icu_65::Measure::operator ==(const icu_65::UObject &) const' [synthesized expression 'y == x'] C:\xsd-build\xsd-msvc\libicuuc-65.1.0+6\libicu/uc\unicode/stringpiece.h(242): note: or 'UBool icu_65::operator ==(const icu_65::StringPiece &,const icu_65::StringPiece &)' [synthesized expression 'y == x'] C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\fmtable.cpp(59): note: while trying to match the argument list '(const icu_65::Measure, const icu_65::Measure)' info: failed to update (for test) dir{xsd-4.2.0-b.4\} After this, I could not proceed. Hope this helps. Paul On Mon, Apr 3, 2023 at 10:15?AM Paul McGrath wrote: > Thanks, I'll check it out. > > On Mon., Apr. 3, 2023, 9:42 a.m. Boris Kolpackov, > wrote: > >> Paul McGrath writes: >> >> > AssociationDetails_lib:: >> > AssociationDetails_lib (std::unique_ptr< value_type > p) >> > : value_ (p, 0) >> > { >> > } >> >> This appears to have been fixed in the development version (the code >> now calls std::move(), as one would expect). You can get the version >> with a fix by following these instructions: >> >> https://codesynthesis.com/products/xsd/doc/install-build2.xhtml >> > From boris at codesynthesis.com Thu Apr 6 10:55:04 2023 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Apr 6 10:47:12 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Paul McGrath writes: > I went through the installation of build2 and received the following: > > warning: authenticity of the certificate for repository pkg:cppget.org/alpha > cannot be established > [...] Yes, these are expected. > Finally, the test brought up this error: > > C:\xsd-build\xsd-msvc>bpkg test xsd > c++ libicui18n-65.1.0+6\libicui18n\i18n\cxx{fmtable} > C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\fmtable.cpp(59): > error C2666: 'icu_65::Measure::operator ==': overloaded functions have > similar conversions >From your earlier emails I gather you are using a preview version of MSVC (17.6/19.36.32502) and this version of the compiler exposes (what appears to be) a bug in ICU: https://github.com/build2-packaging/icu/issues/1 While upstream hasn't released a fixed version yet, we have patched the build2 package and released a revision. If you re-try the steps, I believe everything should work out now. From paul.s.mcgrath at gmail.com Tue Apr 11 20:36:52 2023 From: paul.s.mcgrath at gmail.com (Paul McGrath) Date: Tue Apr 11 23:38:25 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Awesome, thanks! On Thu., Apr. 6, 2023, 10:55 a.m. Boris Kolpackov, wrote: > Paul McGrath writes: > > > I went through the installation of build2 and received the following: > > > > warning: authenticity of the certificate for repository pkg: > cppget.org/alpha > > cannot be established > > [...] > > Yes, these are expected. > > > > Finally, the test brought up this error: > > > > C:\xsd-build\xsd-msvc>bpkg test xsd > > c++ libicui18n-65.1.0+6\libicui18n\i18n\cxx{fmtable} > > > C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\fmtable.cpp(59): > > error C2666: 'icu_65::Measure::operator ==': overloaded functions have > > similar conversions > > From your earlier emails I gather you are using a preview version > of MSVC (17.6/19.36.32502) and this version of the compiler exposes > (what appears to be) a bug in ICU: > > https://github.com/build2-packaging/icu/issues/1 > > While upstream hasn't released a fixed version yet, we have patched > the build2 package and released a revision. If you re-try the steps, > I believe everything should work out now. > From paul.s.mcgrath at gmail.com Fri Apr 14 09:32:41 2023 From: paul.s.mcgrath at gmail.com (Paul McGrath) Date: Mon Apr 17 08:56:22 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Re-tried the steps and everything worked, however, the install doesn't seem to have installed the libxsd file. Should this not show up in the C:/xsd/lib directory? Or, in the c:/xsd/release/lib? Either way a search on the xsd directory showed no libxsd file. Thanks for all your help. Paul On Thu, Apr 6, 2023 at 10:55?AM Boris Kolpackov wrote: > Paul McGrath writes: > > > I went through the installation of build2 and received the following: > > > > warning: authenticity of the certificate for repository pkg: > cppget.org/alpha > > cannot be established > > [...] > > Yes, these are expected. > > > > Finally, the test brought up this error: > > > > C:\xsd-build\xsd-msvc>bpkg test xsd > > c++ libicui18n-65.1.0+6\libicui18n\i18n\cxx{fmtable} > > > C:\xsd-build\xsd-msvc\libicui18n-65.1.0+6\libicui18n\i18n\fmtable.cpp(59): > > error C2666: 'icu_65::Measure::operator ==': overloaded functions have > > similar conversions > > From your earlier emails I gather you are using a preview version > of MSVC (17.6/19.36.32502) and this version of the compiler exposes > (what appears to be) a bug in ICU: > > https://github.com/build2-packaging/icu/issues/1 > > While upstream hasn't released a fixed version yet, we have patched > the build2 package and released a revision. If you re-try the steps, > I believe everything should work out now. > From boris at codesynthesis.com Mon Apr 17 09:09:06 2023 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Apr 17 09:01:03 2023 Subject: [xsd-users] c++11 refers to a deleted function. In-Reply-To: References: Message-ID: Paul McGrath writes: > Re-tried the steps and everything worked, however, the install doesn't seem > to have installed the libxsd file. > > Should this not show up in the C:/xsd/lib directory? libxsd is a header only-library so if you are looking for its .lib file, there won't be any. You will need to link either Xerces-C++ or Expat .lib file, however. See instructions for details: https://codesynthesis.com/products/xsd/doc/install-build2.xhtml#windows-libxsd From paul.s.mcgrath at gmail.com Mon Apr 24 09:58:31 2023 From: paul.s.mcgrath at gmail.com (Paul McGrath) Date: Tue Apr 25 01:45:21 2023 Subject: [xsd-users] c++11 linker error unresolved external symbol "...element_map::serialize..." Message-ID: Hello, I'm getting this linker error message when trying to build a program against the xsd-4.2.0 header library. The code is based on the examples/cxx/tree/messaging/dom-parse.cxx and examples/cxx/tree/messaging/dom-serialization.cxx example. 2>main.obj : error LNK2019: unresolved external symbol "public: static void __cdecl xsd::cxx::tree::element_map::serialize(class xercesc_3_2::DOMElement &,class xsd::cxx::tree::element_type const &)" (?serialize@?$element_map@DV_type@tree@cxx@xsd@@@tree@cxx@xsd@ @SAXAEAVDOMElement@xercesc_3_2@@AEBV?$element_type@DV_type@tree@cxx@xsd@ @@234@@Z) referenced in function "public: bool __cdecl bellshire::MatML_Lib::Set(class std::basic_string,class std::allocator >,class bellshire::lib::Units_lib * &)" (??$Set@VUnits_lib@lib@bellshire@@@MatML_Lib@bellshire @@QEAA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@ @AEAPEAVUnits_lib@lib@1@@Z) 2>C:\Users\paulm\source\repos\BT-MatML-Lib\build\win64\Debug\BT-MatML-Libd.exe : fatal error LNK1120: 1 unresolved externals Best regards and thanks for all your help. Paul