Menu

dev C++ compilation wont work

2006-03-16
2012-09-26
  • Nobody/Anonymous

    i dont know why but dev c++ compilations all give me build errors. i am using version 4.9.9.2 on windows xp home w/ SP 2.
    Not even a the default programs can be compiled.

    #include <cstdlib>
    #include <iostream>

    using namespace std;

    int main(int argc, char *argv[])
    {
    system("PAUSE");
    return EXIT_SUCCESS;
    }

    Here is the compilation log:

    Compiler: Default compiler
    Building Makefile: "C:\CPPprojects\Makefile.win"
    Executing make...
    make.exe -f "C:\CPPprojects\Makefile.win" all
    g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"

    make.exe: *** [main.o] Error -1073741819

    Execution terminated

    Someone please if you can tell me why i get these errors and how can i fix them?

     
    • Nobody/Anonymous

      come to think of it i had microsfot visual for c++ beta 2005 installed a while ago but i uninstalled it
      However dev was working with it installed but i dont know about after i uninstalled it

       
    • Nobody/Anonymous

      I recommend trying first a clean uninstall - see the "Please Read Before Posting a Question" thread for directions - its not hard, but you have to the thorough.

      Redownload 4.9.9.2 and install in the default directory.

      Note the request in the uninstall directions on keeping careful note of what you do.

      Wayne

      p.s. The forum is breaking links again, but if you copy and paste the link in the Please Read thread, it works fine

       
    • Nobody/Anonymous

      I have compilation problems to, i'm triying to compile a c programm generated by pcyacc and i get the error macro "yywrap" passed 1 arguments, but takes just 0, how to solve this problem?

       
      • Anonymous

        Anonymous - 2006-03-16

        Start your own thread. The OP may not have had his problem solved yet, and you have butted in.

        Clifford

         
    • Nobody/Anonymous

      Alright i uninstalled dev, and it prompted me to "remove configuration files" i clicked yes.
      I assume these are the devcpp.cfg and devcpp.ini. Are they? because i did a search for devcpp on my hard drve and i get only 1 result. That is devcpp.FTS. Should I delete that too?

       
    • Wayne Keen

      Wayne Keen - 2006-03-16

      Delete everything dev related, including the Dev folder etc....

      Wayne

       
    • Nobody/Anonymous

      alrite i deleted that dev file and restarted my computer
      I downloaded the installer for 4.9.9.2 with the compiler and other stuff.
      i installed it to the default directory (c:\dev-c++) and checked all the boxes for the installation. (including remove previous config files)
      When it asked for code completion i said no
      i tried the same program by making a new project but i still got the same error.

       
    • Nobody/Anonymous

      I guess you chose to ignore the uninstall directions about reporting exactly what you did to do the uninstall.

      Are you running an anti-virus?

      Wayne

       
      • Nobody/Anonymous

        Please try compiling your code without a project.
        i.e. Open a New:Source File - enter a simple "Hello World" program, and compile it.

        Post your log please.

        Wayne

         
    • Nobody/Anonymous

      wow thank you without a project it works
      im really new at programming

      heres the log:
      Compiler: Default compiler
      Executing g++.exe...
      g++.exe "C:\TESTAGAIN\Untitled1.cpp" -o "C:\TESTAGAIN\Untitled1.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -L"C:\Dev-Cpp\lib"
      Execution terminated
      Compilation successful

       
      • Anonymous

        Anonymous - 2006-03-17

        Under Tools|Compiler options|Programs, try changing make.exe to c:\dev-cpp\bin\make.exe to ensure the correct make utility is being used. Not all builds of GNU make behave in the same way, and there are non-GNU implementations that will not work at all with Dev-C++.

        Clifford

         
        • Nobody/Anonymous

          That is where I was heading next sir, thanks!

          Wayne

           
      • Nobody/Anonymous

        I don't think I actually fixed anything - this was just a test of your setup. Yes, you can compile without a project, as long as you are only compiling single files, but hopefully, your skills will outgrow that (I HOPE they outgrow mine for that matter)

        Clearly, something is messing with make.

        Do you have something else like Cygwin, or a Borland compiler, on your machine.

        Wayne

         
    • Nobody/Anonymous

      hmm... i changed tools > compiler options > programs > make: to "c:\dev-cpp\bin\make.exe" i tried running the project again but still wont work. Here is the compile log it

      Compiler: Default compiler
      Building Makefile: "C:\testtest\Makefile.win"
      Executing make...
      c:\dev-cpp\bin\make.exe -f "C:\testtest\Makefile.win" all
      g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"

      c:\dev-cpp\bin\make.exe: *** [main.o] Error -1073741819

      Execution terminated

      Same problems still i guess.
      BTW yes i have McAffee Antivirus (disabling doesnt help)
      and no i dont have Borland or Cygwin or any compiling programs that i can think of.

       

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.