Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: Tom233145 on May 23, 2015, 02:16:05 am
-
So... I am making a text-based dungeon crawler rpg "game" and it was building and working and all fine and dandy and then it showed the following output:
Linking console executable: E:\Programs\dungeonCrawler.exe
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/i386-pc-mingw32/4.4.0/../../../../i386-pc-mingw32/bin/ld.exe: cannot open output file E:\Programs\dungeonCrawler.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
When I edit the text in the code and build it, the build won't update. I really need help because I would like to use this as a school project due next Wednesday. Any help is appreciated.
Thanks,
Tom233145
-
Are you running the executable while you try to build it?
Anti virus software?
-
Which windows version ?
You might not be able to create an exe below programs-folder, but not change it, if it already exists.
-
Which windows version ?
You might not be able to create an exe below programs-folder, but not change it, if it already exists.
I am running Windows 7 currently.
-
In the past I have found this was caused by the file being locked.
try renaming (or deleting) the file from windows , if it cant be done there
then the file is locked, either by a running process or explorer
if you are able to delete or rename the file the build should work
(assuming this to be the only problem and it is being reported correctly.)
-
Thanks AndrewB! I did what you said and I deleted the file and pasted everything back into it and it works!
-
Or you can try to kill process with name of your project next time.