You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile manually but get the following error while trying make -j9
Logs:
/usr/bin/ld: objs/loop.o:/home/david/tg/loop.c:77: multiple definition of `verbosity'; objs/main.o:/home/david/tg/main.c:93: first defined here
/usr/bin/ld: objs/loop.o:/home/david/tg/loop.c:392: multiple definition of `wait_dialog_list'; objs/main.o:/home/david/tg/main.c:522: first defined here
/usr/bin/ld: objs/loop.o:/home/david/tg/loop.c:90: multiple definition of `register_mode'; objs/main.o:/home/david/tg/main.c:520: first defined here
/usr/bin/ld: objs/interface.o:/home/david/tg/interface.c:122: multiple definition of `msg_num_mode'; objs/main.o:/home/david/tg/main.c:94: first defined here
/usr/bin/ld: objs/interface.o:/home/david/tg/interface.c:135: multiple definition of `readline_active'; objs/loop.o:/home/david/tg/loop.c:390: first defined here
/usr/bin/ld: objs/interface.o:/home/david/tg/interface.c:125: multiple definition of `disable_colors'; objs/main.o:/home/david/tg/main.c:111: first defined here
/usr/bin/ld: objs/interface.o:/home/david/tg/interface.c:124: multiple definition of `permanent_peer_id_mode'; objs/main.o:/home/david/tg/main.c:125: first defined here
/usr/bin/ld: objs/interface.o:/home/david/tg/interface.c:121: multiple definition of `disable_auto_accept'; objs/main.o:/home/david/tg/main.c:521: first defined here
/usr/bin/ld: objs/interface.o:/home/david/tg/interface.c:123: multiple definition of `permanent_msg_id_mode'; objs/main.o:/home/david/tg/main.c:124: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:60: bin/telegram-cli] Error 1
The text was updated successfully, but these errors were encountered:
changing line 77 in loop.c from int verbosity to extern int verbosity and line 122 in interface.c from int msg_num_mode to extern int msg_num_mode seems to solve this for me. (as seen in this forum thread )
Take with a grain of salt, as I really don't have a clue about C.
I am trying to compile manually but get the following error while trying
make -j9
Logs:
The text was updated successfully, but these errors were encountered: