-
Notifications
You must be signed in to change notification settings - Fork 115
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
Fix "Undefined symbols" linker error when DocumentChange::npos was used #474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! Please make sure that this is ok to merge/the version number in the changelog is up-to-date.
release_build_files/readme.md
Outdated
@@ -567,6 +567,11 @@ code. | |||
|
|||
## Release Notes | |||
|
|||
### 8.1.0 | |||
- Changes | |||
- Firestore: Fixed a linker error when DocumentChange::npos was used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: please wrap DocumentChange::npos
in backticks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
### 8.1.0 | ||
- Changes | ||
- Firestore: Fixed a linker error when DocumentChange::npos was used. | ||
([#474](https://github.com/firebase/firebase-cpp-sdk/pull/474)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: I think the changelog usually links to issues, not PRs, so this link could probably be omited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there is a mixture of issues and PRs linked to in previous change log entries. I see your point but I personally feel like adding a link to additional context is useful for future readers. If this issue had been discovered externally then there would be an issue number; however, since it was discovered by me, a developer on the Firestore team, no issue was created. IMO, providing this link adds value at no cost. If you feel strongly I can remove it, but I like having it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that this is ok to merge/the version number in the changelog is up-to-date.
I confirmed the version number at go/firebase-cpp-release.
release_build_files/readme.md
Outdated
@@ -567,6 +567,11 @@ code. | |||
|
|||
## Release Notes | |||
|
|||
### 8.1.0 | |||
- Changes | |||
- Firestore: Fixed a linker error when DocumentChange::npos was used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
### 8.1.0 | ||
- Changes | ||
- Firestore: Fixed a linker error when DocumentChange::npos was used. | ||
([#474](https://github.com/firebase/firebase-cpp-sdk/pull/474)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there is a mixture of issues and PRs linked to in previous change log entries. I see your point but I personally feel like adding a link to additional context is useful for future readers. If this issue had been discovered externally then there would be an issue number; however, since it was discovered by me, a developer on the Firestore team, no issue was created. IMO, providing this link adds value at no cost. If you feel strongly I can remove it, but I like having it here.
❌ Integration test FAILEDRequested by @dconeybe on commit de68c2b
|
Fix a bug where accessing
firebase::firestore::DocumentChange::npos
from a non-Android platform results in a linker error:Here is the declaration of
npos
:firebase-cpp-sdk/firestore/src/include/firebase/firestore/document_change.h
Lines 66 to 72 in 7ae9569
The fix is to add a definition of
npos
into the corresponding .cc file