Mysterious error in C compiler

I just don't understand why from time to time I got this error message when compiling a C file

C:\Users\Owner\Desktop\Tubes TBO>g++ -o main T-08-13509098-mmesinkata1.c T-08-13509098-mesinkata1.c mesinkar1.c: multiple definisi dari `♦' C:\Users\Owner\AppData\Local\Temp\cc21kt92.o:T-08-13509098-mmesinkata1.c:(.bss+0x0): pertama didefinisikan disini: multiple definisi dari `♦' C:\Users\Owner\AppData\Local\Temp\cc21kt92.o:T-08-13509098-mmesinkata1.c:(.bss+0x20): pertama didefinisikan disini collect2: ld returned 1 exit status 

Sorry, but my compiler is in Indonesian, so basically the above error message says that in the T-08-13509098-mmesinkata1.c file there are several `♦ 'definitions that are NOT FOUND anywhere I look for it strange symbol in this file .... and the compiler says nothing about the line where it found that the strange symbol

Please ... can someone help me with this error? It really disappoints, because a week ago I can compile it just fine, but this morning it failed, although I did not change anything in the file from last week ... Thanks ....

+4
source share
1 answer

For the error that occurs when working with the .bss segment, check your definitions for global variables. Also, make sure your code does not contain characters other than ascii, with the exception of comments.

+3
source

Source: https://habr.com/ru/post/1347332/


All Articles