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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Windows XP, ver. 4.9.9.2
> 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