Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Souradeep on December 21, 2010, 06:28:36 pm

Title: problem in compilation.
Post by: Souradeep on December 21, 2010, 06:28:36 pm
After installing code::blocks I could compile a couple of program without any issues. But after closing it and shutting down my pc, when I try to run it again next time any previously saved projects or open a new project and try to run it....it shows the following statement in the 'build messages'. Please Help. I am new to code::blocks..I am using windows 7. PCs 64 bit .and codeblocks-10.05mingw

ld.exe||cannot open output file C:\Program Files (x86)\CodeBlocks\try\main.exe Permission denied|
||=== Build finished: 1 errors, 0 warnings ===|
Title: Re: problem in compilation.
Post by: stahta01 on December 21, 2010, 07:08:07 pm
Move you project folder to a normal location NOT under the program folders.

Tim S.
Title: Re: problem in compilation.
Post by: MortenMacFly on December 21, 2010, 08:29:06 pm
As an addition:
This is NOT an issue of Code::Blocks. Under Windows, normal users (and starting with Vista even administrators) have no write access to sensitive folders by default. This includes e.g. "Windows" and "Program Files". It's not wise to put any user related content there. For this purpose Windows offers the "User" folder, also knows as "My files".
Title: Re: problem in compilation.
Post by: Souradeep on December 22, 2010, 11:07:35 am
 :)Thanks....