ditg
ditg copied to clipboard
error: Ordered comparison of pointer with integer zero ('char*' and 'int') when compiling in traffic.cpp
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"
When i try
sudo make
I get the error in error_2.png
Which is weird because i thought that "NULL" and normal "0" are interchangable in C. Could it be because of compiler versions?
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.
Were you able to compile it ? @hrishikeshathalye @Arsivnet
@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