User forums > General (but related to Code::Blocks)

Need help building and running program

(1/1)

Tom233145:
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 :)

scarphin:
Do you have a project or a single file to compile?

Tom233145:
This happens even with the "Hello World!" program.

Jenna:
Never put any projects below the Programs-folder.
Use the Documents-folder or some other folder, where you have full access.

Tom233145:
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

Navigation

[0] Message Index

Go to full version