Author Topic: Need help building and running program  (Read 2007 times)

Offline Tom233145

  • Multiple posting newcomer
  • *
  • Posts: 12
Need help building and running program
« on: May 06, 2015, 11:43:18 pm »
I need help when building and running a program. I build the program, and then when I try to run it, it says: "It seems that this file has not been built yet. Do you want to build it now?"

Here is the output after building the program:

Compiling: C:\Program Files (x86)\CodeBlocks\New folder\Conversion\main.cpp
Linking console executable: C:\Program Files (x86)\CodeBlocks\New folder\Conversion\main.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 C:\Program Files (x86)\CodeBlocks\New folder\Conversion\main.exe: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
Checking for existence: C:\Program Files (x86)\CodeBlocks\New folder\Conversion\main.exe

I would really like for this issue to be resolved so I can run my programs.

Thanks,
Tom233145 :)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Need help building and running program
« Reply #1 on: May 07, 2015, 12:38:15 am »
Do you have a project or a single file to compile?

Offline Tom233145

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Need help building and running program
« Reply #2 on: May 07, 2015, 02:32:38 am »
This happens even with the "Hello World!" program.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Need help building and running program
« Reply #3 on: May 07, 2015, 05:57:43 am »
Never put any projects below the Programs-folder.
Use the Documents-folder or some other folder, where you have full access.

Offline Tom233145

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Need help building and running program
« Reply #4 on: May 09, 2015, 04:06:52 am »
Thanks jens! You really helped. I am VERY new to this (just starting learning the language). I moved it to a different folder and it worked.
Thanks,
Tom233145