Fix missing nzbget.h includes causing compilation errors#736
Merged
dnzbk merged 1 commit intonzbgetcom:developfrom Feb 15, 2026
Merged
Fix missing nzbget.h includes causing compilation errors#736dnzbk merged 1 commit intonzbgetcom:developfrom
dnzbk merged 1 commit intonzbgetcom:developfrom
Conversation
Include nzbget.h before other headers in UrlCoordinator.cpp and
PathsValidator.cpp to ensure functions and types are properly declared
before use.
Without this fix, compilation fails with errors like:
```
/var/tmp/portage/net-nntp/nzbget-26.0/work/nzbget-26.0/daemon/queue/UrlCoordinator.cpp:208:25: error: ‘error’ was not declared in this scope
208 | error("Cancelling hanging url download %s", urlDownloader->GetInfoName());
| ^~~~~
```
```
/var/tmp/portage/net-nntp/nzbget-26.0/work/nzbget-26.0/daemon/util/NString.h:67:17: error: ‘free’ was not declared in this scope
67 | free(m_data);
| ^~~~
```
dnzbk
approved these changes
Feb 15, 2026
Collaborator
|
Thanks, merging this now. I'm not sure about the CI, as it worked fine when I manually built the app on macOS, Debian and Windows. |
Contributor
Author
Thanks, it was indeed. I reproduced by checking out the repo before my patch and rebuilding with Maybe the CI should run with this option too? |
Collaborator
I'll definitely think about that, thanks for the suggestion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Hi,
While building nzbget 26.0 for Gentoo, I ran into build problems that I couldn't reproduce when building nzbget manually from the git repo. If you know why, please let me know, I'm curious as to how this slipped past the CI.
Include nzbget.h before other headers in UrlCoordinator.cpp (broken since 0fbd1b5, I assume) and PathsValidator.cpp to ensure functions and types are properly declared before use.
Without this fix, compilation fails with errors like:
Lib changes
None
Testing
Build nzbget.