fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct example
  5. {
  6. static const int intNumber = 1;
  7. };
  8.  
  9. int main() {
  10. std::cout << &example::intNumber ;
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/RB6bY3/ccsFPFRM.o: In function `main':
prog.cpp:(.text.startup+0x12): undefined reference to `example::intNumber'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty