Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started 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 :)
-
Do you have a project or a single file to compile?
-
This happens even with the "Hello World!" program.
-
Never put any projects below the Programs-folder.
Use the Documents-folder or some other folder, where you have full access.
-
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