[xsd-users] link problem only in Release mode

tsroynciitraoln tsroynciitraoln at gmail.com
Tue Jun 9 11:11:56 EDT 2015


Hi,

I'm currently working on this library
http://www.epri.com/abstracts/Pages/ProductAbstract.aspx?ProductId=000000000001026753
.

To be able to acess DOMcontent, I use the following command line (on linux)
:

./xsd cxx-tree --generate-serialization --generate-polymorphic
--polymorphic-type-all *--generate-ostream --generate-wildcard*
--output-dir ./data99  --namespace-map
http://openadr.org/oadr-2.0b/2012/07=oadr2b::oadr --namespace-map
http://docs.oasis-open.org/ns/energyinterop/201110=oadr2b::ei
--namespace-map http://www.opengis.net/gml/3.2=oadr2b::gml --namespace-map
http://docs.oasis-open.org/ns/emix/2011/06=oadr2b::emix --namespace-map
http://www.w3.org/2009/xmldsig11#=oadr2b::dsig11 --namespace-map
http://www.w3.org/2000/09/xmldsig#=oadr2b::sig --namespace-map
http://openadr.org/oadr-2.0b/2012/07/xmldsig-properties=oadr2b::dsp
oadr_20b.xsd oadr_atom.xsd oadr_ei_20b.xsd oadr_emix_20b.xsd
oadr_gml_20b.xsd oadr_greenbutton.xsd
oadr_ISO_ISO3AlphaCurrencyCode_20100407.xsd oadr_power_20b.xsd
oadr_pyld_20b.xsd oadr_siscale_20b.xsd oadr_strm_20b.xsd oadr_xcal_20b.xsd
oadr_xml.xsd oadr_xmldsig-properties-schema.xsd oadr_xmldsig.xsd
oadr_xmldsig11.xsd --export-symbol "OPENADRBINDING_API" --file-per-type
--hxx-prologue-file "prologue.h"

With all theses files, I generate a DLL, all is ok in Debug and in Release

Another project uses this DLL, in Debug mode, all is ok; but in release
mode I got this error :

3>Oadr2bHelper.obj : error LNK2001: symbole externe non résolu
"__declspec(dllimport) public: virtual __cdecl
xsd::cxx::tree::date_time<char,class xsd::cxx::tree::simple_type<char,class
xsd::cxx::tree::_type> >::~date_time<char,class
xsd::cxx::tree::simple_type<char,class xsd::cxx::tree::_type> >(void)"
(__imp_??1?$date_time at DV?$simple_type at DV_type@tree at cxx@xsd@@@tree at cxx@xsd@
@@tree at cxx@xsd@@UEAA at XZ)
3>CreateOptSchedule.obj : error LNK2001: symbole externe non résolu
"__declspec(dllimport) public: __cdecl xsd::cxx::tree::uri<char,class
xsd::cxx::tree::simple_type<char,class xsd::cxx::tree::_type>
>::uri<char,class xsd::cxx::tree::simple_type<char,class
xsd::cxx::tree::_type> >(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(__imp_??0?$uri at DV?$simple_type at DV_type@tree at cxx@xsd@@@tree at cxx@xsd@
@@tree at cxx@xsd@@QEAA at AEBV?$basic_string at DU?$char_traits at D@std@
@V?$allocator at D@2@@std@@@Z)
3>CreateOptSchedule.obj : error LNK2001: symbole externe non résolu
"__declspec(dllimport) public: virtual __cdecl
xsd::cxx::tree::uri<char,class xsd::cxx::tree::simple_type<char,class
xsd::cxx::tree::_type> >::~uri<char,class
xsd::cxx::tree::simple_type<char,class xsd::cxx::tree::_type> >(void)"
(__imp_??1?$uri at DV?$simple_type at DV_type@tree at cxx@xsd@@@tree at cxx@xsd@
@@tree at cxx@xsd@@UEAA at XZ)


Any idea how to fix this ? (I tried both using VS2013 and VS2015)

Best regards


More information about the xsd-users mailing list