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

make: *** [Makefile:125: /root/RtspServer/objs/AsyncLogging.o] Error 1 #18

Open
Leox0717 opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@Leox0717
Copy link

Leox0717 commented Dec 2, 2024

编译遇到问题:

g++ -c -o /root/RtspServer/objs/AsyncLogging.o /root/RtspServer/src/base/AsyncLogging.cpp -O2 -g -I/root/RtspServer/src
In file included from /root/RtspServer/src/base/AsyncLogging.cpp:2:
/root/RtspServer/src/base/AsyncLogging.cpp: In constructor ‘AsyncLogging::AsyncLogging(std::string)’:
/root/RtspServer/src/base/AsyncLogging.cpp:21:16: error: ordered comparison of pointer with integer zero (‘FILE*’ and ‘int’)
   21 |     assert(mFp >= 0);
      |            ~~~~^~~~
make: *** [Makefile:125: /root/RtspServer/objs/AsyncLogging.o] Error 1

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

1 participant