Menu

Dev-Cpp doesn't compile and run

Dousai6
2011-03-24
2012-09-26
  • Dousai6

    Dousai6 - 2011-03-24

    Hello people, dev-cpp doesn't compile and run any project. As a example, I
    want to compile and run the basic hello world project:

    include <iostream>

    using namespace std;

    int main (int argc, char *argv)
    {
    cout << "Hello World!" << endl;
    cout << "Press ENTER to continue..." << endl;
    cin.get();
    return 0;
    }

    The compiler registry shows:
    Compiler: Default compiler
    Building Makefile: "C:\C++\Makefile.win"
    Running make...
    make.exe -f "C:\C++\Makefile.win" all
    g++.exe hello_0.o -o "Hello_0.exe" -L"C:/Dev-Cpp/lib"
    /mingw/lib/crt2.o(.text+0x28):crt1.c: undefined reference to
    __dyn_tls_init_callback' /mingw/lib/crt2.o(.text+0x5c):crt1.c: undefined reference to__cpu_features_init'
    collect2: ld returned 1 exit status
    make.exe: *** Error 1
    Run finished

    I tried many times (including uninstalling and reinstalling the program) but
    nothing works.

    Is there a fix for this problem?

    Dev-Cpp version 4.9.9.2
    OS: Windows XP Home Edition SP3

     
  • Tammy Mckeel

    Tammy Mckeel - 2011-03-28

    Hey,
    I'm having the same problem. A simple "Hello World" code sent me this message:
    Premission denied
    Id returned 1 exit status
    I did some more searching and found out this error was hidden:
    Failed to set data for "
    address-0x0047ABCA

    I am waiting for someone to help me as well,
    I will be watching your post, good luck
    Tammy

     
  • Steve A

    Steve A - 2011-03-30

    Please read the post titled:
    PLEASE READ BEFORE POSTING A QUESTION

    The latest release of Dev-C++ (4.9.9.4) dates back to 2005.
    Both Windows Vista and Windows-7 are newer than release 4.9.9.2.
    Colin LaPlace abandoned Dev-C++ after this release.

    Dev-C++ seems to work (with caveats) with Windows-XP.
    Dev-C++ is known to have problems with Windows Vista.
    I do not believe that Dev-C++ works with Windows-7.

    See:
    http://sourceforge.net/projects/dev-
    cpp/forums/forum/48211/topic/1693710

    regarding "Vista".

    If you are experiencing problems compileing using Win-XP or newer, I'd
    consider switching compilers to Code::Blocks w/MinGW or Visual Studio Express.

    Also Try: wxDev-C++
    http://wxdsgn.sourceforge.net/

    If you are a student learning C/C++:
    http://cboard.cprogramming.com/
    (not Dev-C++ related)

     
  • Anonymous

    Anonymous - 2011-04-01

    For all C++ developpers, please use the latest version on MinGW/Cygwin on
    Netbeans or the Visual C++ compiler on Visual Studio.

     
  • Dousai6

    Dousai6 - 2011-04-08

    For sarbayo: thanks for the observation, but I'd like (without offending) you
    see carefully the compiler registry.
    I also tried to change to wxDev-C++, but it didn't work.

    In the case of code::blocks, I'd like to install but I can't due to the
    possible compiler corruption (I mean, that in code::blocks happens the same
    thing as in Dev-C++).

     
  • Lizwi

    Lizwi - 2012-04-18

    Try to dev-c-4.9.9.9
    It works even in windows 7 (32/64bit)

    can download on the address bellow:

    http://orwellengine.blogspot.com/2011/08/dev-c-4999-released.html

     
  • Anonymous

    Anonymous - 2012-04-21

    Dev-C++ version 5.2.0.0 has been released a few days ago, you can giveit a
    try:
    http://orwellengine.blogspot.com/2012/04/dev-c-5200-released.html

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.