#include <iostream>
#include "student.h"
using namespace std;
int main()
{
Student s1;
return 0;
}
PS D:\C++\xxx\xx> cd "d:\C++\Cspace\test" ; if ($?) { g++ 'main.cpp' -o 'main.exe' -Wall -g -O2 -static-libgcc -std=c++17 -fexec-charset=GBK } ; if ($?) { &'.\main' }
D:\C++\Cspace\test/main.cpp:7: undefined reference to `Student::Student()'
D:\C++\Cspace\test/main.cpp:7: undefined reference to `Student::~Student()'
collect2.exe: error: ld returned 1 exit status