Author Topic: problem in compilation.  (Read 3958 times)

Offline Souradeep

  • Single posting newcomer
  • *
  • Posts: 3
problem in compilation.
« 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 ===|

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: problem in compilation.
« Reply #1 on: December 21, 2010, 07:08:07 pm »
Move you project folder to a normal location NOT under the program folders.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: problem in compilation.
« Reply #2 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".
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Souradeep

  • Single posting newcomer
  • *
  • Posts: 3
Re: problem in compilation.
« Reply #3 on: December 22, 2010, 11:07:35 am »
 :)Thanks....