|
|
|
|
extern std::array<double, 1000> a_1;
etc).obj\Debug\main.o:main.cpp:(.data+0x0): multiple definition of `x' obj\Debug\second.o:second.cpp:(.data+0x0): first defined here |
In the first case, the compiler can reason that no function that doesn't take a_1 by reference can possibly access a_1 or its contents, so more aggressive optimizations can be used. |