Closed sgtcortez closed 1 year ago
Since pidsToWatch was declared in the main.cpp file, compilations which uses only the headers have an undefined symbol.
main.cpp
I have just moved the definition to the process.cpp class, which will be included in all binaries.
process.cpp
I am not sure how to check to reproduce the error from https://github.com/raboof/nethogs/issues/230
I have run: make & make libnethogs which compiled successfully
make
make libnethogs
If you have another way to test the, I would be glad to learn
The bug
Since pidsToWatch was declared in the
main.cpp
file, compilations which uses only the headers have an undefined symbol.I have just moved the definition to the
process.cpp
class, which will be included in all binaries.Checks
I am not sure how to check to reproduce the error from https://github.com/raboof/nethogs/issues/230
I have run:
make
&make libnethogs
which compiled successfullyIf you have another way to test the, I would be glad to learn