News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Need help building and running program

Started by Tom233145, May 06, 2015, 11:43:18 PM

Previous topic - Next topic

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