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

Undefined reference to value::as<long long>() #5

Closed
Malvineous opened this issue Sep 28, 2015 · 3 comments
Closed

Undefined reference to value::as<long long>() #5

Malvineous opened this issue Sep 28, 2015 · 3 comments

Comments

@Malvineous
Copy link
Contributor

When I try to compile the library it works fine, but when I try to compile a program that uses the library, I get this error:

undefined reference to `long long xlnt::value::as<long long>() const'

I copied the implementation of value::as<int64_t>() in value.cpp and changed int64_t to long long and it fixed the problem. It looks like the cause might be in writer.cpp line 428, where value::as<long long>() gets called.

I guess one of these needs long long changed to int64_t or vice versa?

@tfussell
Copy link
Owner

I think you're right. I'm going to see if this fix works on all three platforms. I'll commit it to master later today if everything looks okay.

@tfussell
Copy link
Owner

tfussell commented Oct 2, 2015

I believe this has been fixed since I added overloads for all integer types both signed and unsigned today. Could you try this program again with the most recent commit? If it's still not working, an excerpt of the code that causes this error would help me narrow down the problem.

@Malvineous
Copy link
Contributor Author

Just confirming that this is now working perfectly too. 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