Menu

Compilation error with dev cpp

Numberator
2010-01-06
2012-09-26
  • Numberator

    Numberator - 2010-01-06

    when I compile my project i get an error with the following compile log. I
    cant seem to find a solution anywhere after googling it.

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

    process_begin: CreateProcess(NULL, C:/cygwin/bin /sh.exe -c "g++.exe -c
    test.cpp -o test.o -I\"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include\" -I\"C:/Dev-
    Cpp/include/c++/3.4.2/backward\" -I\"C:/Dev-Cpp/include/c++/3.4.2/mingw32\"
    -I\"C:/Dev-Cpp/include/c++/3.4.2\" -I\"C:/Dev-Cpp/include\" ", ...) failed.
    make (e=5): Access is denied.

    make.exe: *** Error 5

    Execution terminated

     
  • Numberator

    Numberator - 2010-01-06

    by the way i am using dev cpp 4.9.9.2 with windows 7

     
  • cpns

    cpns - 2010-01-06

    It looks like make.exe is trying to launch the compiler through C:/cygwin/bin
    /sh.exe which is not part of MinGW or Dev-C++. It looks like you have Cygwin
    installed and that this is causing a conflict.

    Dev-C++ has a bug wherein it sets up the build environment by appending the
    toolchain path to teh PATH environment variable. This is dumb because if you
    have another GNU toolchain in the PATH, you will invoke the wrong tools; it
    should prepend the path.

    In this case it has invoked Cygwin's make utility and attempted (and failed
    for some reason) to launch Cygwin's compiler. The simplest solution is to
    remove Cygwin from the PATH environment variable, or add c:\dev-cpp\bin before
    the Cygwin path. Of course the problem with that solution is it disables
    Cygwin. I'll leave that for you to worry about!

     

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.