Skip to content

Instantly share code, notes, and snippets.

@keichi
Created August 23, 2023 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keichi/cb32bd0741bfb545bfd4d7e3559274fc to your computer and use it in GitHub Desktop.
Save keichi/cb32bd0741bfb545bfd4d7e3559274fc to your computer and use it in GitHub Desktop.
#include <random>
int main()
{
}
#include <random>
b.o: In function `std::experimental::fundamentals_v2::reseed()':
b.cpp:(.text+0x2670): multiple definition of `std::experimental::fundamentals_v2::reseed()'
a.o:a.cpp:(.text+0x26b0): first defined here
b.o: In function `std::experimental::fundamentals_v2::reseed(unsigned int)':
b.cpp:(.text+0x27d0): multiple definition of `std::experimental::fundamentals_v2::reseed(unsigned int)'
a.o:a.cpp:(.text+0x2810): first defined here
#/bin/bash
nc++ -std=c++17 -c a.cpp
nc++ -std=c++17 -c b.cpp
nc++ a.o b.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment