Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 360 Bytes

File metadata and controls

16 lines (13 loc) · 360 Bytes

Функция:

void foo() {
  return;
}

определена в файлах a.cpp и b.cpp, что приводит к ошибке:

/tmp/ccvV3l7z.o: In function `foo()':
b.cpp:(.text+0x0): multiple definition of `foo()'
/tmp/ccph9CpZ.o:a.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status