mvrdevelopment / libMVRgdtf

Other
7 stars 1 forks source link

XMLCh and TXString cannot compute with each other #49

Closed yoyo201626 closed 5 months ago

yoyo201626 commented 5 months ago

Describe the bug No calculations can be performed between XMLCh and TXString.

To Reproduce Steps to reproduce the behavior:

  1. Development environment: Windows10 19045.4412, cmake 3.29.2, Visual Studio Community 2022 17.9.5
  2. use cmake and then open visual studio image
  3. compiling the MvrGdtf project image
  4. error occurs image image

Expected behavior no error occurs

Screenshots image

Desktop (please complete the following information): OS: Windows10 19045.4412 Visual Studio Community 2022 17.9.5 cmake 3.29.2

Additional context I'm new to learning c++ and I'm sorry if my question is too superficial to trouble you

welcome[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the issue template!

moritzstaffel commented 5 months ago

You need to define -Dxmlch-type=wchar_t for CMAKE. This should fix it. This is for the xerces build.

Otherwise you can use rapid XML. There is a a flag for this: -DDONT_USE_XERCES_AS_XMLLIB=TRUE this is for the actual libary.