Code::Blocks will not run program - codeblocks

I run Code::Blocks on Windows 8.1 and this just started happening today.
Whenever I try to run my code for the first time, it compiles and I get the .exe running, but it freezes on a black screen. After waiting a while I close it and try to run it again.
Then it won't compile, says:
ld.exe||cannot open output file C:\Users\Chris\Desktop\Projects\Trying.exe Permission denied|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Whenever I run it again it just gives this error.
Deleting the files don't help, and the .exe won't delete, Windows gives me an error that it's still running despite nothing showing up on Task Manager.
This only happens with new projects I try to create. Even "Hello World" gets this error. My other older projects run fine.
Any ideas?

Related

Msys terminal error in opening new terminal

Sometimes when i open the msys2 mingw64 bit terminal an error is displayed in console:
Error: Could not fork child process: There are no available terminals (-1).
This error oqurues many time during the project time, but if i restart the laptop, there is no error.
Anyone who has facing simillar error?
I have seen this issue too, and it disappears after reboot.
Make sure you have run autorebase.bat in the msys64 folder.

Signing error when trying to open executable created with raco (macOS)

I've been breaking my head on this issue and have come to SO to ask for some help. I'm running Racket v7.7 on macOS 10.14. I've built an application with a GUI (https://github.com/layetri/markoviser), and when I compile it with raco exe --gui, all is fine. That is, until I try to execute the created .app. The program seems to start for a few seconds, but then dies. Looking at the Console, tccd gives me the following error:
Failed to copy signing info for 10203, responsible for file:///Users/layetri/Development/markoviser/Markoviser.app/Contents/MacOS/Markoviser: #-67062: Error Domain=NSOSStatusErrorDomain Code=-67062 "(null)"
...after which the program quits. Would anyone know what I'm doing wrong or what I can do about this?

External makefile in Atmel Studio won't build. Windows error 0xc0000142

I downloaded bitcloud, the atmel zigbee stack and I am trying to compile one of the default applications, ZLLDemo.
It is located currently at:
C:\Users\Ryan\Desktop\BitCloud_MEGARF_3_1_0\Applications\ZLLDemo\atmelStudio_projects\ATmega256RFR2.cproj
Everytime I try to compile the application I get a windows message screen for "mkdir.exe" error 0xc0000142. In the Output screen I see the line "make: *** [directories] Error -1073741502"
This same error and error code occurs later in the build process for cp.exe if I manually make the folders myself.
I have tried the following things to fix the error:
Change folder and contents to different owners, everyone having full
privileges
run make command manually from a command prompt window as admin
clean solution before retrying
all other examples files
ran directly from C: as "C:\BitCloud_MEGARF_3_1_0\Applications\ZLLDemo\atmelStudio_projects\ATmega256RFR2.cproj" - as per general suggestion for the windows error I tried
"sfc /scannow" in case mkdir had somehow been corrupted
Changed AppInitDLLs Reg key to 0 to load all DLLs at start of application
Disabled Internet security
Does this have a general fix or is there perhaps something else at work here? General compilations work, its just external ones. My friend did the same and it seems to work just fine for him.
Windows 8.1
Atmel Studio 6.2
Avrfreaks had a solution that I finally found here.
Their solution is to download an old version of the msys file for winavr. Which means that their is something more than likely wrong with the latest version of winavr for windows 8.1
sebastor wrote:
I found solution.
Copy this file:
http://www.madwizard.org/download/electronics/msys-1.0-vista64.zip
to utils\bin directory (WinAVR)

VC2013 incorrect MSPDB120.DLL

During linking I get this message:
LINK : fatal error LNK1101: incorrect MSPDB120.DLL version; recheck installation of this product
I have seen solutions for similar errors on previous versions of VC2013 but those did not work for me. Those include:
running C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat
adding %VS120COMNTOOLS% environment variable to the PATH environment variable
Reinstall or Repair the installation of MSVC2013 (NOT RECOMMENDED)
The first time I got this error I went ahead with a full reinstall of VC2013. I chose to take this rout because I thought maybe I had screwed up the install by installing older versions of VC after installing VC2013. Although reinstalling worked the first time, I can't recommend doing this. The MS installer seems rather broken and hung up on me on repeated attempts, resulting in the loss of 5+ hours of my life.
What are some other solutions to this problem if the first 2 options do not work?
Open Task Manager.
Check for the currently running processes mspdbsrv.exe and kill it if it is running and try again. I don't know why this works, but I have to do it every once in a while. The process comes back each time you compile and it seems random whether or not it gets stuck on this step.
Alternatively, if you do not need debug information generated, you can skip this process altogether by setting:
Project Properties -> Linker -> Debugging -> Generate Debug Info ->
No
I just had this happen. In my case, I had a statically-linked shared 'helper' lib that was compiled with the cl.exe CRT flags "-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE", whereas my target app that linked in this helper lib did not have these set. Once I added these flags to the app's cl.exe flags, all was good.
I get this error message when another compile (jenkins) is still running in the background.
Waiting for it to finish, and retry fixes the error.

Codeblocks "Error resetting breakpoint..." can't debug

This is my first post, so feel free to direct me elsewhere if this is in the wrong place. I'm totally new to code::blocks, and I followed the directions (twice) from here to set it up with minGW. Other than some expected warnings, it builds just fine. However, when I go to debug it, I get the following messages:
Setting breakpoints Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 3928 [Inferior 1 (process 3928) exited with code
[037777777777] Debugger finished with status 0
When I set a breakpoint, I get the following:
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 3092
Error in re-setting breakpoint 2: Function "C:/Users/Me/Documents/My Code/MyProgram/MyProgram/main.cpp:5" not defined.
[Inferior 1 (process 3092) exited with code 037777777777]
Debugger finished with status 0
I have searched and searched, but I haven't found anything. The only relevant posts on this site,
CodeBlocks Breakpoints Ignoring Scope
codeblocks debugging
How to debug in Codeblocks?,
have not helped me at all. I've reinstalled everything twice and I have no idea what else to do to get this debugger working. Any help at all would be appreciated.
EDIT: I made "Hello World!" and it ran, but still could not be debugged. No idea what the problem is, especially since it detects gdb.
This error occurs if there is a space in your build path (in your case "My Code").
Just rename that directory or move the project to a place where there are no spaces in your path.
Reason:
Ref this link: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces
You may have to clean and build your project again

Resources