User forums > Using Code::Blocks

cout not working in codeblocks

<< < (2/3) > >>

cbusername:
'Pause when execution ends' is checked for both debug and release. Program is not running from cmd line. I tried Program1 (which is the name of the project) from the directory where it is and it says access denied.

jarod42:
Where is the exe ? is it a special directory ?
Which permission has the exe ? (if on *nix, which is your umask value ?)...

cbusername:
it is in c:users/orindombanerjee/desktop/bin/debug

orindom banerjee is my name.

cbusername:
c:\users\orindombanerjee\desktop\bin\debug

no special directory. It stored it there by default.

jarod42:
I would says that Desktop is a special directory...

- Try to copy and run your exe from another directory (Or change output directory in C::B)
- Check if you can run an other executable in the "problematic" directory.
- Look at Software Restriction Policy (SRP) in the user's Group Policy Object (GPO) if something blocks it.

So it is not a C::B issue, but your OS which forbids to launch your exe....

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version