ditg icon indicating copy to clipboard operation
ditg copied to clipboard

error: Ordered comparison of pointer with integer zero ('char*' and 'int') when compiling in traffic.cpp

Open Arsivnet opened this issue 2 years ago • 3 comments

When i try the command in the INSTALL manual: sudo make install PREFIX=/usr/local

I get the error in error_1.png "böyle bir dosya ya da dizin yok" means "no such file or directory"

error_1

When i try sudo make I get the error in error_2.png error_2

Which is weird because i thought that "NULL" and normal "0" are interchangable in C. Could it be because of compiler versions?

Arsivnet avatar Jun 04 '22 17:06 Arsivnet

I also faced this recently. You're right, it's probably due to compiler versions. Have a look at this - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87699 This did not happen before GCC 11+, where this has now been implemented.

hrishikeshathalye avatar Jun 20 '22 05:06 hrishikeshathalye

Were you able to compile it ? @hrishikeshathalye @Arsivnet

Dhyey-Thummar avatar Apr 04 '23 13:04 Dhyey-Thummar

@Dhyey-Thummar I changed the code a bit to account for the errors, but now when i try to compile i get this error. Anyone know what -lITG flag is all about in the makefile in ITGManager?

Edit: fixed formation

Building libITG
\-------------------
make[1]: Nothing to be done for 'all'.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.

-------------------
Building ITGManager
\-------------------
[ LD ]  ITGManager <- ../common/thread.o ITGManager.o
/usr/bin/ld: cannot find -lITG: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:10: ITGManager] Error 1
make: *** [unix.mk:182: ITGManager] Error 2

Arsivnet avatar May 07 '23 10:05 Arsivnet