Linker Error Reading From File

I seem to be having trouble as I'm receiving two error messages from the following source code.

[Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__cpu_features_init'

Source Code:

#include <iostream>
#include <fstream>

using namespace std;

int main()
{
ifstream inFile;
const int SIZE = 81;
char numbers[SIZE];

inFile.open("C:\\Users\\Peter\\Documents\\readit.txt");

cout << "Reading Information from the file.\n\n";

for (int i = 0; i < 3 ; i++)
{
inFile >> numbers;
cout << numbers << endl;
}

inFile.close();
cout <<"\nDone.\n";


char x;
cin >> x;

return 0;
}
What project template did you use when creating this project, assuming you did use some sort of project template in an IDE?

-Albatross
I used the standard development environment in DEV C++. All the source code is listed. Is it possible that the header file fstream was incorrectly linked?
Topic archived. No new replies allowed.