Python Tutor shows: "Locate(void*)'" as the compiler error message. when running locally, g++ on centos7 shows something much more helpful:
$ g++ blah.cpp -o blah
/tmp/ccuVB2KQ.o: In function `HashTable::Insert()':
blah.cpp:(.text+0x19): undefined reference to `HashTable::Locate(void*)'
collect2: error: ld returned 1 exit status
[maybe because that's a linker error and not a compiler error?]
http://pythontutor.com/visualize.html#code=class%20HashTable%20%7B%0A%20%20bool%20Locate%28void*%29%3B%0A%20%20void%20Insert%28%29%3B%0A%7D%3B%0A%0Avoid%20HashTable%3A%3AInsert%20%28%29%20%7B%0A%20%20Locate%280%29%3B%0A%7D%0A%0Aint%20main%28%29%20%7B%0A%20%20return%200%3B%0A%7D&cumulative=false&heapPrimitives=nevernest&mode=edit&origin=opt-frontend.js&py=cpp&rawInputLstJSON=%5B%5D&textReferences=false
Python Tutor shows: "Locate(void*)'" as the compiler error message. when running locally, g++ on centos7 shows something much more helpful:
[maybe because that's a linker error and not a compiler error?]