Menu

ld returned 1 exit status

2009-02-01
2012-09-26
  • anonymous nobody

    I get an error when I try to compile anything.

    Compiler: Default compiler
    Building Makefile: "C:\mycstuff\learndx\Makefile.win"
    Executing make...
    make.exe -f "C:\mycstuff\learndx\Makefile.win" all
    g++.exe main.o -o "learndx.exe" -L"C:/Dev-Cpp/lib" -mwindows ../../Dev-Cpp/lib/libd3d9.a ../../Dev-Cpp/lib/libd3dx9.a

    C:\Dev-Cpp\Bin..\lib\gcc\mingw32\3.4.2........\mingw32\bin\ld.exe: cannot open output file learndx.exe: Permission denied
    collect2: ld returned 1 exit status

    make.exe: *** [learndx.exe] Error 1

    Execution terminated

    -JM

     
    • anonymous nobody

      Windows XP, ver. 4.9.9.2

       
    • cpns

      cpns - 2009-02-01

      > cannot open output file learndx.exe

      This is the file you are compiling. This usually happens if the previous build is still running. Close any previous instance first. Because ypu have the -mwindows option set, the console window is suppressed, and if your application did not create and display a GUI window, or closed its own window without terminating, the process may still be running 'hidden'. Check the process list in Task Manager (Ctrl-Alt-Del) and terminate the process if necessary.

      Failing all that re-boot and try again. Failing even that, re-boot, delete the executable, and try again. Failing that, give up and use a better compiler; i.e. http://www.microsoft.com/express/vc/ , especilly if you are using DirectX - you can then use Microsoft's official (and legal) DX SDK.

      Clifford

       

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.