While compiling my Yahtzee project I get these errors:

||=== Build: Debug in Yahtzee (compiler: GNU GCC Compiler) ===|
ld.exe||cannot open output file bin\Debug\Yahtzee.exe Permission denied|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

I use CodeBlocks.

It's not nice to get these errors, for I was just busy developing my project ;-)

That could be something as simple as an instance of the program is already running. The compiler can't write a new Yahtzee.exe if it is in use.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.