undefined reference to

i don't know why im getting this error with code blocks, im getting an error of
{ undefined reference to 'Student::Student()' }

/* this is my main.cpp */

#include <iostream>
#include "Student.h"
using namespace std;

int main(){

Student Object;

return 0;
}

/* this is my Student.cpp */

#include <iostream>
#include "Student.h"
using namespace std;

Student::Student()
{
cout << "text" << endl;
}

/* this is my Student.h */

#ifndef STUDENT_H
#define STUDENT_H


class Student
{
public:
Student();

private:
};

#endif // STUDENT_H

http://www.cplusplus.com/forum/general/113904/ (maybe `you forgot to link the file that defines it')
Topic archived. No new replies allowed.