Solved DEV C++ Compier just NOT working :/

February 12, 2011 at 09:06:33
Specs: Windows 7

I have no idea why it's not working. I thought i may be writing programs with poor syntax or something but even when i run the example programs. It shows errors D: Here's some example code:

#include <iostream>

using namespace std;

int main (int argc, char *argv[])
{
char quit;

quit = '\0';
while (quit != 'q')
{
cout << "Hello ! This is a console app." << endl;
cout << "To create a console, go to Project Options and select" << endl;
cout << "\'Win32 Console\'." << endl;
cout << "Press q to quit " << endl;
cin >> quit;
}

return 0;
}


and these are the errors that go with it.
[Linker error] undefined reference to `__dyn_tls_init_callback'
[Linker error] undefined reference to `__cpu_features_init'
ld returned 1 exit status
C:\Dev-Cpp\Examples\Hello\Makefile.win [Build Error] [Hello.exe] Error 1

If ANYONE can help I'd be very happy.

Thanks, Guys. :)


See More: DEV C++ Compier just NOT working :/

Report •


✔ Best Answer
July 11, 2011 at 15:14:06

hello,

i got the same problem, the reason was because i had another mingw instalations in my system. It seems that devc looks for a mingw installation each time it starts.

The solution: i rename the c:\mingw\ folder and everything start working with the internal devc mingw.

Cheers!



#1
February 12, 2011 at 10:27:53

Sounds like your install is corrupt. Uninstall, remove any configuration (check %AppData%), and reinstall.

How To Ask Questions The Smart Way


Report •

#2
February 12, 2011 at 16:25:11

Thanks, I uninstalled, and deleted everything to do with, Dev C++ and then installed it all...Still not working :/ I'm getting the same error message. I'm stuck...

Report •

#3
February 12, 2011 at 17:21:45

Try a different installer. MinGW is complaining it can't find its internal parts, and that shouldn't happen.

EDIT: You are doing the full install, correct?

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
February 12, 2011 at 19:36:40

I remember having this problem a while back I think the solution was to remove directory listings under:

Tools > Compiler Options > Directories

I can't remember which directories need to be deleted and I can't find a link anywhere


Report •

#5
February 13, 2011 at 03:03:01

Thanks again, guys. I think I'm going to have to download an alternative C++ compiler. Do you know any as good as, if not better than, DEV C++?

Report •

#6
February 13, 2011 at 03:44:21

Code::Blocks is quite good.

Report •

#7
February 13, 2011 at 05:20:47

Visual C++ Express.

Report •

#8
February 13, 2011 at 14:35:46

Thanks Judago :) just downloaded the compiler and it works perfect.

and thanks to everyone else, your help is really appreciated.


Report •

#9
May 3, 2011 at 00:54:01

Solution:
1. Download new MINGW compiler at http://www.mingw.org/ and install it in C:\MinGW\
2. in Dev c++. right click on menu Tools>Compiler options.
3. in tab "Directory", right click on "Libraries" and change "C:\Program Files\Dev-Cpp\Lib" to "C:\MinGW\lib"
4. Compile!

Report •

#10
June 2, 2011 at 02:16:37

tiensi1991 u r great....u solved my problem...

Report •

#11
July 11, 2011 at 15:14:06
✔ Best Answer

hello,

i got the same problem, the reason was because i had another mingw instalations in my system. It seems that devc looks for a mingw installation each time it starts.

The solution: i rename the c:\mingw\ folder and everything start working with the internal devc mingw.

Cheers!


Report •


Ask Question