Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Tom233145 on May 23, 2015, 02:16:05 am

Title: Build help
Post 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
Title: Re: Build help
Post by: oBFusCATed on May 23, 2015, 02:22:30 am
Are you running the executable while you try to build it?
Anti virus software?
Title: Re: Build help
Post by: Jenna on May 23, 2015, 02:37:46 am
Which windows version ?
You might not be able to create an exe below programs-folder,  but not change it, if it already exists.
Title: Re: Build help
Post by: Tom233145 on May 23, 2015, 04:17:50 am
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.
Title: Re: Build help
Post by: AndrewB on May 23, 2015, 05:16:45 am
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.)
Title: Re: Build help
Post by: Tom233145 on May 23, 2015, 01:25:29 pm
Thanks AndrewB! I did what you said and I deleted the file and pasted everything back into it and it works!
Title: Re: Build help
Post by: qtreez on May 23, 2015, 03:05:05 pm
Or you can try to kill process with name of your project next time.