Comments (5)
Sorry found a couple more in the new files:
../include/xlnt/reader/workbook_reader.hpp:32:48: error: ‘uint8_t’ is not a member of ‘std’
xlnt::workbook load_workbook(const std::vector<std::uint8_t> &bytes);
^
../include/xlnt/reader/workbook_reader.hpp:32:48: error: ‘uint8_t’ is not a member of ‘std’
../include/xlnt/reader/workbook_reader.hpp:32:60: error: template argument 1 is invalid
xlnt::workbook load_workbook(const std::vector<std::uint8_t> &bytes);
Fixed by:
--- a/include/xlnt/reader/workbook_reader.hpp
+++ b/include/xlnt/reader/workbook_reader.hpp
@@ -23,6 +23,7 @@
// @author: see AUTHORS file
#pragma once
+#include <cstdint>
#include <vector>
namespace xlnt {
And:
worksheet_writer.cpp: In function ‘std::string xlnt::write_worksheet(xlnt::worksheet, const std::vector<std::basic_string<char> >&, const std::unordered_map<long unsigned int, std::basic_string<char> >&)’
worksheet_writer.cpp:119:9: error: ‘sort’ is not a member of ‘std’
std::sort(styled_columns.begin(), styled_columns.end());
^
worksheet_writer.cpp:163:26: error: ‘floor’ is not a member of ‘std’
if(height == std::floor(height))
Fixed by:
--- a/source/worksheet_writer.cpp
+++ b/source/worksheet_writer.cpp
@@ -1,3 +1,4 @@
+#include <algorithm>
#include <sstream>
#include <xlnt/cell/cell.hpp>
from xlnt.
Also got some linker errors compiling the samples:
libxlnt.so: undefined reference to `long long xlnt::cell::get_value<long long>() const'
Which looks like a similar fix to the set_value()
solution:
--- a/source/cell.cpp
+++ b/source/cell.cpp
@@ -614,6 +616,18 @@ std::uint64_t cell::get_value() const
{
return static_cast<std::uint64_t>(d_->value_numeric_);
}
+
+template<>
+long long cell::get_value() const
+{
+ return static_cast<long long>(d_->value_numeric_);
+}
+
+template<>
+unsigned long long cell::get_value() const
+{
+ return static_cast<unsigned long long>(d_->value_numeric_);
+}
template<>
float cell::get_value() const
from xlnt.
I made some pretty major changes so I had a feeling some problems might show up. I'll get to work on these and the previous issues.
from xlnt.
No worries, many thanks for taking the time to work on this!
from xlnt.
This is all fixed now too with the latest git version - thanks again!
from xlnt.
Related Issues (20)
- Loading file fails with error: attribute 'localSheetId' expected HOT 4
- Parse error!(xlnt::exception : bad cell coordinates: (#REF!))
- This is really a good library for xlsx, but the document may need improved?
- number_serialiser::deserialise returns wrong result due to buffer not being null terminated
- Unexpected attribute 'ca' when working with formular in xlsx file.
- Is it possible to write a whole record i.e std::vector<std::string> into the xlnt::worksheet instead of writing cell by cell?
- Throw "counts don`t match" exception
- How do I insert a picture as embedded in a cell ? HOT 1
- When string tables entries exceed 1000, a ',' is being inserted in the string table number, resulting in errors opening file HOT 1
- C++23 aligned storage deprecation warning
- Reference counting issues with xlnt::format_impl
- Do Excel files not support Chinese path? HOT 1
- Fresh release HOT 2
- Errors when try to use in Windows
- Crash on Release HOT 1
- Cloning project failed HOT 1
- Read xls file?
- password
- error in Add Password: wb.save("lots_of_properties.xlsx","password");
- throws exception when I use load function to load an xlsx file containing functions HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xlnt.