Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date.hpp missing from xlnt.hpp #38

Closed
Malvineous opened this issue Apr 21, 2016 · 2 comments
Closed

date.hpp missing from xlnt.hpp #38

Malvineous opened this issue Apr 21, 2016 · 2 comments

Comments

@Malvineous
Copy link
Contributor

Hi again,

Been a while but getting back to this now. Just tried compiling with the latest version and getting this error:

import.cpp:450:69: error: invalid use of incomplete type ‘struct xlnt::date’
    auto dt = row[i].get_value<xlnt::date>();
                                                                     ^
In file included from /usr/include/xlnt/xlnt.hpp:26:0,
                 from import.hpp:9,
                 from import.cpp:7:
/usr/include/xlnt/cell/cell.hpp:49:8: note: forward declaration of ‘struct xlnt::date’
 struct date;
        ^

This is fixed by adding an #include for utils/date.hpp into xlnt.hpp. Hopefully you can add this!

@Malvineous Malvineous changed the title .hpp missing from xlnt.hpp date.hpp missing from xlnt.hpp Apr 21, 2016
@tfussell
Copy link
Owner

tfussell commented Apr 21, 2016

Hi Malvineous,

Thanks for identifying this problem. It always surprises me which platforms have trouble finding headers. I do need to tidy up that main header here at some point.

@Malvineous
Copy link
Contributor Author

Great, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants