Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Tom233145 on May 06, 2015, 11:43:18 pm

Title: Need help building and running program
Post by: Tom233145 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 :)
Title: Re: Need help building and running program
Post by: scarphin on May 07, 2015, 12:38:15 am
Do you have a project or a single file to compile?
Title: Re: Need help building and running program
Post by: Tom233145 on May 07, 2015, 02:32:38 am
This happens even with the "Hello World!" program.
Title: Re: Need help building and running program
Post by: Jenna 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.
Title: Re: Need help building and running program
Post by: Tom233145 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