U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » Added Xlnt .xlsx library
Re: Added Xlnt .xlsx library [message #62012 is a reply to message #61981] Wed, 27 May 2026 15:43 Go to previous message
forlano is currently offline  forlano
Messages: 1238
Registered: March 2006
Location: Italy
Senior Contributor
Hi IƱaki,

at some moment my package using Xlnt stopped to work with error

C:\upp\UppHub\Xlnt\plugin\Xlnt\source\detail\unicode.cpp (42): error: use of undeclared identifier 'utf8__' (): 42 | utf8__::utf8to16(utf8_string.begin(), utf8_string.end(), std::back_inserter(result)); C:\upp\UppHub\Xlnt\plugin\Xlnt\source\detail\unicode.cpp (49): error: use of undeclared identifier 'utf8__' C:\upp\UppHub\Xlnt\plugin\Xlnt\source\detail\unicode.cpp (56): error: use of undeclared identifier 'utf8__' C:\upp\UppHub\Xlnt\plugin\Xlnt\source\detail\unicode.cpp (63): error: use of undeclared identifier 'utf8__' C:\upp\UppHub\Xlnt\plugin\Xlnt\source\detail\unicode.cpp (89): error: use of undeclared identifier 'utf8__' C:\upp\UppHub\Xlnt\plugin\Xlnt\source\detail\unicode.cpp (95): error: use of undeclared identifier 'utf8__'
It was the second time it happened and the last time I had to reinstall the whole Upp.
Today I discovered that if in the file unicode.cpp I modify it in this way

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
#pragma clang diagnostic ignored "-Wweak-vtables"
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wsuggest-override"
//#include <utf8.h>    //<--- comment this one
#include <plugin/Xlnt/third-party/utfcpp/utf8.h>  //<---- new include
#pragma clang diagnostic pop
it works. I do not know why. However now it works on my machine.

Best regards,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WebViewCtrl using native engine
Goto Forum:
  


Current Time: Wed May 27 17:30:31 GMT+2 2026

Total time taken to generate the page: 0.01031 seconds