Clang unable to link files in VS Code
问题 I recently started learning C++, and I'm currently trying to test out the header file functionality. I wrote three simple files: headertest.h: #pragma once class Cube { public: double getVolume(); double getSurfaceArea(); void setLength(double length); private: double length_; }; headertest.cpp: #include "headertest.h" double Cube::getVolume() { return length_ * length_ * length_; } double Cube::getSurfaceArea() { return 6 * length_ * length_; } void Cube::setLength(double length) { length_ =