Language
C++
Compiler
gcc HEAD 10.0.1 20200226 (experimental)
Options
Warnings
Don't Use Boost
C++17
no pedantic
Raw compiler options
foo1.cpp
foo2.cpp
$ g++ prog.cc -Wall -Wextra -std=c++17 foo1.cpp foo2.cppExit Code:
1
Author
anonymous
almost 6 years ago
C++
gcc HEAD 10.0.1 20200226 (experimental)
Author
anonymous
almost 6 years ago
$ g++ prog.cc -Wall -Wextra -std=c++17 foo1.cpp foo2.cpp/tmp/cc3ATSvO.o: In function `foo()':
foo2.cpp:(.text+0x0): multiple definition of `foo()'
/tmp/ccuVgSHn.o:foo1.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status