Author Topic: Build help  (Read 3779 times)

Offline Tom233145

  • Multiple posting newcomer
  • *
  • Posts: 12
Build help
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Build help
« Reply #1 on: May 23, 2015, 02:22:30 am »
Are you running the executable while you try to build it?
Anti virus software?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Build help
« Reply #2 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.

Offline Tom233145

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Build help
« Reply #3 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.

Offline AndrewB

  • Single posting newcomer
  • *
  • Posts: 4
Re: Build help
« Reply #4 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.)

Offline Tom233145

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Build help
« Reply #5 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!

Offline qtreez

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Build help
« Reply #6 on: May 23, 2015, 03:05:05 pm »
Or you can try to kill process with name of your project next time.