4,311 questions
2
votes
0
answers
48
views
How to pass multi-line code strings with proper indentation to a jsx component in Astro MDX?
I'm building a static site with Astro and trying to create a custom code block component that allows users to switch between different programming languages.
Current Implementation
CodeBlock.jsx:
...
1
vote
1
answer
80
views
Cygwin GDB not working under Codeblocks, (error 2: The system cannot find the file specified.)
The title says it all.
This question is quite the same with this question. However, the difference is that now it is 2 years and 4 major versions of cygwin gdb later. I want to believe that keeping ...
-1
votes
1
answer
158
views
How to open/close a file in a function in an endless loop
My problem is that I get the "too many files open" (Process returned 1 (0x1) ) error and I don't know why. I close the file with fclose() every time. I do that in a function and this ...
-1
votes
1
answer
44
views
Highlight.js: Single line code block with scroll-x
I have set up Highlighterjs with my NextJS@13+ page routing, but the code block is taking single line with scroll-x. Look at the image...
If i remove the useEffect the highliger is gone, but the line ...
1
vote
1
answer
142
views
C pointers understanding
I have ran into an issue that has made me realise I don't know as much about pointers as I thought I did.
test.h
#ifndef TEST_H_INCLUDED
#define TEST_H_INCLUDED
void getDataAlt(char** dst);
#endif // ...
0
votes
1
answer
106
views
How to fix the entry point problem on Code::Blocks
I have a problem. Code::Blocks is showing this:
codeblocks.exe - Entry Point Not Found
The procedure entry point _initterm could not be located ion the dynamic link library D:\Program Files\...
0
votes
1
answer
46
views
Why does codeblocks memory dump window not show the error?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
struct train
{
int id;
int hours;
int minutes;
char destination[21];
};
// ...
0
votes
0
answers
73
views
Issues with using * in command line in windows [duplicate]
I was trying to solve the reverse polish calculator problem where the arguments can be entered on the command line. I am facing a peculiar problem. The program name is rpc.exe
A command line entry as ...
2
votes
0
answers
39
views
Problem Including c files into a codeblocks project
I'm having trouble with a bmp editor project while using codeblocks.
Context: This is a group project I made alongside 2 friends, all the functions work and it's ready to be submitted as a codeblocks ...
0
votes
1
answer
205
views
How can I fix debugging error in Code::Blocks which uses MSYS2?
I installed gnu GCC and GDB with MSYS2.
This is the command I used:
pacman -Syu
pacman -S --needed base-devel mingw-w64-x86_64-toolchain
I added environment variable "C:\msys64\mingw64\bin" ...
0
votes
1
answer
145
views
Code::Blocks 20.03 - 64 bit Compiler error
I cannot compile the winapi code below using Code::Blocks 20.03 - 64 bit Compiler and get the following error messages:
#include <tchar.h>
#include <windows.h>
#include <commctrl.h>
#...
0
votes
0
answers
46
views
Execution of "...\sandbox.sys" failed Code::Blocks
Recently, I was trying to make very simple program in C about calculating rectangle area and perimeters for my students on Code::Blocks.
I am getting that done by header files and implementation files ...
0
votes
0
answers
217
views
How to compile for Linux when on Windows using Code::Blocks?
I have a console app which I want to compile for Linux.
I don't have access to a Linux operating system at the moment, but I really do need to compile this program for as many operating systems as ...
-2
votes
1
answer
223
views
FreeGLUT undefined references
I have tried to get FreeGLUT and been successful before, but now I get undefined reference errors when running any FreeGLUT apps
entire log:
g++.exe -L"C:\Program Files (x86)\CodeBlocks\MinGW\...
-3
votes
1
answer
252
views
The unnecessary red block appearing in my code
I wrote the code up by following the instructions given by cplusplus and I don't why the red block keeps appearing in my code. I've installed the latest version of code blocks and also enabled the ...
0
votes
1
answer
41
views
Ubuntu CodeBlocks move windows around
Story: I am trying to migrate to using Ubuntu (I am aware of the existence of other distros, that is not the focus of the question) and I wanted to install CodeBlocks on it (I am aware that there ...
0
votes
0
answers
89
views
When using RegQueryValueExW how can I get the entire string which is an REG_SZ?
I should get ABCDEFG, but I only got A.
UPDATE: I added my current adjusted code and an example screen shot.
/// UNICODE version
DWORD NEW_dwType;
HKEY NEW_hKey = 0;
char ...
0
votes
0
answers
304
views
CodeBlocks Isn't Running On MacOs
I have been struggling to install CodeBlocks. After many attempts and watching some YouTube videos, I finally managed to install it. However, now I'm encountering a problem. When I open it, all I see ...
1
vote
1
answer
65
views
How to debug in codeblock?
I am working on C++ and I created a file and put a breakpoint, but when I start debugging, it opens up a terminal, and suddenly it closes it. I am not sure what is wrong with debugging. If I run the ...
1
vote
1
answer
437
views
Error: id returned 5 exit status when building C++ code in Code::Blocks
I'm encountering an issue in Code::Blocks where attempting to build C++ code results in the error message "Error: id returned 5 exit status," even when there are no syntax errors present in ...
0
votes
1
answer
191
views
Cannot use Debugger in Codeblocks for AVR-Project
I am trying to code a new AVR project in Code::Blocks (using Ubuntu). However, every time I try to build my project the following error message appears:
Current compiler 'GNU GCC Compiler for AVR' ...
0
votes
1
answer
93
views
Code Blocks auto completion working partly
I have a problem with autocompletion in Code Blocks. Let's say that I'm creating my own header file - it has <vector> library - then I'm creating .cpp file and I include there header, I had ...
0
votes
1
answer
162
views
GNU Fortran - Function 'dcosd' has no IMPLICIT type
I'm a newbie in Fortran coding also in GNU Fortran and Code::Blocks.
I've installed codeblocks-20.03mingw-setup on Win10 and now trying to run this piece of code from scratch:
program hello
implicit ...
1
vote
2
answers
358
views
Issues with hello world wxWidgets project in Code::Blocks
While I was building the "hello world" project from the official wxWidget site in Code::Blocks, I got the following error:
||=== Build: Debug in wxTest2 (compiler: GNU GCC Compiler) ===|
obj\...
0
votes
0
answers
551
views
how can i fix this debug (no such file)?
/I can't run any code and i recive that/
Build messages :
||=== Build: Debug in tes (compiler: GNU GCC Compiler) ===|
obj\\Debug\\main.o||No such file or directory|
||error: no input ...