4,309 questions
2
votes
0
answers
73
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:
...
0
votes
1
answer
46
views
Setting codeblocks as default app for file association
When I install codeblocks V25 (64-bit) in windows "Program Files" I seem to be unable to set the default file type association for cbp-files. Seems to work if I install in "Program ...
1
vote
1
answer
88
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 ...
0
votes
1
answer
130
views
How to install libraries in Code::Blocks on Linux
I recently started using code::blocks on Linux (Linux Mint). I've been trying to install GTK and its dependencies for C++.
I started by downloading each of the dependencies as a .tar.xz file, and then ...
-1
votes
1
answer
163
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 ...
0
votes
1
answer
60
views
How can I run the bits library on Codeblock
I want to ask why my Code::blocks suddenly cannot run when I include the <bits/stdc++.h> library (More detail in the pictures below), everything else works fine. This happened after I set up Git:...
-1
votes
1
answer
52
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 ...
4
votes
3
answers
432
views
What to do if <threads.h> isn't recognize (in C11)?
I've been learning how to do multi-threading in C and wanted to use <threads.h>. But it (my compiler GCC 8.1) says that <threads.h> isn't a file or a directory when I wanted to compile ...
1
vote
1
answer
151
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
0
answers
54
views
Where is my cbKeyBinder10.ini file in Code::Blocks?
A debug report has been generated in this directory: a dialog box open and my Code::Blocks suddenly stopped. How can I solve this problem? And where is my cbKeyBinder10.ini file in Code::Blocks. And ...
0
votes
1
answer
118
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
0
answers
73
views
SDL2 Code::Blocks unable to find lSDL2_image and lSDL2_ttf
I'm using Code::Blocks version 20.03 on my Windows 11 PC to compile C++ files, whenever I try to build the file, I get an error that it is unable to find -lSDL2_image and -lSDL2_ttf.
Here are the ...
0
votes
1
answer
55
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];
};
// ...
1
vote
0
answers
41
views
How to disable code completion suggestions from other open source files in Code::Blocks?
Code::Blocks always shows suggestions from other open source files. For example, if I write a function in another file like func(int a, char ch), Code::Blocks will automatically suggest func(int a, ...
0
votes
0
answers
80
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 ...