Questions tagged [codeblocks]
This tag is for Code::Blocks, an open-source C++ IDE. Do not use this tag for code blocks which define scope (e.g. curly braces).
4,282
questions
0
votes
0
answers
8
views
How do I link GLFW to my Code::Blocks project?
I would like to link the library to the IDE so I can write a program with it. How do I link the latest GLFW pre-compiled Windows 64-bit binaries to the project?
-4
votes
2
answers
80
views
My C program only shows zeroes in output despite my code being correct
My code is correct I guess. Howevwe, for the pay slip, the output only shows zeroes and does not give the right output. I'm compiling in code blocks.
#include <stdio.h>
int main()
{
float ...
0
votes
1
answer
29
views
How to compile DB and DD assembly instructions using GCC compiler
I am trying to compile a legacy module(written in C) in my project using gcc compiler. I am using codeblocks IDE for compilation. I was able to resolve most of the issues i faced but not able to ...
0
votes
0
answers
15
views
what to do if this shown "The display: block property prevents align-items from having an effect. Try setting display to something other than block"
what to do if this shown "The display: block property prevents align-items from having an effect. Try setting display to something other than block"
visual Description
Please Help to resolve ...
0
votes
2
answers
24
views
wx-config not effect in codeblocks on linux
I have build wxWidgets3.0.5 from source on Linux(OpenSuse15.4), and it is installed in /opt/wxWidgets.
wxWidgets' hello world example is build successful by the following command
g++ hello.cpp `wx-...
0
votes
0
answers
6
views
Problem with the build process of C files in codeblocks
Here is a picture of the error notification I get. How should I go about resolving this issue?
I have no idea where to start as this my first time programing
-1
votes
2
answers
80
views
Need help finding words in a list that contain a given character
The assignment is:
Write a program that reads an integer, a list of words, and a character. The integer signifies how many words are in the list. The output of the program is every word in the list ...
0
votes
0
answers
12
views
PowerShell.WindowsForm.TextBoxValues
Have a Windows Form and 3 TextBox (TextBoxFIO, TextBoxName, TextBoxSurname). First TextBoxFIO need to enter value it is a Name and Surname. Exmpale: John Slater. Next step: After entered the "...
0
votes
0
answers
45
views
How to write multi-line Python script block in GitLab pipeline using a YAML file
The following script block works perfectly for me when run as a simple Python script from VSCode.
d = {'A':123, 'B':456, 'C':789, 'D':222}
for key, value in d.items():
print(f'{key} {value}...
0
votes
1
answer
23
views
CodeBlock in TextView
I am currently developing an Android app and I would like to incorporate a feature that allows users to input code snippets in a similar fashion to how it's done on Stack Overflow. Specifically, I ...
0
votes
0
answers
42
views
Why does my for loop of month does not give me an accurate reading
I am suppose to calculate the average temperature and the standard deviation of each month of the given year.
This is the function to calculate average temp and stdev according to the year given.
bool ...
0
votes
0
answers
13
views
Errors occur while compiling SFML-Imgui "undefined reference to" [duplicate]
I'm trying to compile SFML-Imgui in the Code::Blocks application, but I get errors. I have all the necessary Imgui files in the project directory, but what else do I need to do to fix the error?
../...
-1
votes
0
answers
64
views
Code Blocks: build error: 'can't create output directory \\bin\debug'
Edit: Hi there, the solution to this problem was that I put spaces in the title. Rookie mistake XD.
I'm new at C++ just trying to run a 'Hello World'.
When I try to run my project, it asks me if I ...
0
votes
1
answer
42
views
Impossible to make clang/llvm works in Code::Blocks (Windows 10). Is it real?
This is my first post. So if something is incorrect in formatting text, please tell me about it.
I'm the most beginner of beginners. I was wondering whether it's possible to make llvm compiler works ...
0
votes
1
answer
32
views
How can I add a new text line in Azure DevOps comments after a code block?
How can I add a new text line in Azure DevOps comments after a code block?
I added a code block, populate it with some code and now I want to type some text under the code block. But when I press ...
0
votes
0
answers
23
views
Code blocks does not show suggestion functions
My issue is that the code completion does not show me suggestions for C functions, for example when I type "pri", or "print" it does not show any function suggestions at all (I ...
0
votes
1
answer
52
views
Why does this function prints what has been scanned when it finishes the first loop? Specially When i enter more than 1 character? [duplicate]
Below you will find the code that I wrote. So far, this code is to check if the user entered a small letter or a larger letter by scanning the input from the user which is a character and passing it ...
0
votes
2
answers
146
views
Fortran MPI using Cygwin64
I am using Codeblock IDE to write and compile my Fortran program. Right now I want to include MPI to my GNU Fortran Compiler. After following some guides on GNU GCC Compiler, it occurs to me that I ...
-3
votes
2
answers
96
views
i have a problem with making the game of rock,paper,scissors in code blocks(c language)
everything in the code works exept the while loop, and I couldn't figure out how to fix it
code(it's a bit messy):
float paper1 = 1, rock1 = 3, scissors1 = 2, paper2 = -1, rock2 = -3,
scissors2 =...
0
votes
1
answer
80
views
Problem with using clang as compiler for code::blocks
I installed llvm for clang, because I wanted to use clang for code::blocks as compiler, since I need compiler that supports c++20, so I installed llvm, the bin was added in environmental variables, ...
0
votes
0
answers
38
views
error: stray '\255' in program in C programme [duplicate]
I am newbie in c programming. when i try to run this programme got an error.
#include <stdio.h>
int main()
{
int num1, num2, value;
char sign;
printf("Please enter a number:...
0
votes
1
answer
76
views
how to integrate libxl functions in c++
Im trying to read excel sheets of xlsx file and convert each sheet to a csv file using libxl
i downloaded libxl 4.1.0 and followed this steps to integrate libxl in my code:
https://www.libxl.com/...
0
votes
0
answers
21
views
Consisting Error (Error: cannot find 'ld') in codeblocks after deleting my project and try running the "Hello World" programm in c++
I just startet coding and follow a book to get into coding. Now, I have this error but cannot figure out what causes the error. Any Ideas?
(https://i.stack.imgur.com/Wjeir.png)
I checked my compiler ...
0
votes
0
answers
38
views
Running programm in Dev-C++ appears as a blank screen, but not on Code::Blocks
So I have just recently started coding and I'm following a book for beginners on C language. One of the programms we learn to write is as follows below. After I compile and run with Dev-C++ it works, ...
1
vote
0
answers
22
views
After adding libraries in linker and directories, def file is corrupted
After adding libraries in linker and directories, when I try to run a C file that contains standard libs like stdio.h and stdlib.h the code says ||Warning: corrupt .drectve at end of def file|.
I ...
0
votes
0
answers
25
views
How to solve the error in integrating mysql in codeblocks?
I am trying to integrate mysql into my C code. I added libmysql.lib and mysqlclient.lib in the linker settings and the folder 'include' and 'lib' in search directories. However when I run the code it ...
-3
votes
1
answer
36
views
I want the output to be printed after i finished entering the entire input, not showing the output for every line i inputted
so im new to CodeBlocks. I wonder if i could make the CodeBlocks to output my code after i put the entire input? Because my CodeBlocks always show the output for every line i inputted, it's kinda ...
0
votes
0
answers
39
views
color changing happens all at once in c++
i am making a program that is supposed to show you the stations to the sofia metro and i tried making it colorized, but then it turns out that it just shows the color of the last thing printed. i ...
0
votes
0
answers
14
views
Code::Blocks IDE Can't Run or Build Using Linux LFS OS (Custom Distro)
I am using Code::Blocks that I build in custom OS/Distro from LFS book, I am using gcc compiler, I can compile fine in terminal with
g++ test.cpp
a hello world test will be produced.
But in Code::...
-2
votes
1
answer
27
views
Code::Blocks error "rad2deg does not name a type" error "rad2deg was not declared in this scope" C++23
I know for a fact this code is written correctly due to testing this on my Linux machine. No matter what I have done the error persists. I am new to Windows 10 and Code::Blocks, any help regarding ...
-1
votes
1
answer
55
views
How to use a c99 compiler on PC
I have CodeBlocks 13.12 and I want to compile a c99 code on it. Is there any way I can do this. If there is any other way to compile a c99 code, that is okay as well.
Thanks!
-1
votes
1
answer
64
views
How do I reset Codeblocks to factory default
Gray Header File
enter image description here
I was going to make a class in codeblocks, when I realised all of the text was in gray, this has never happened before only now, I'm not sure if it's due ...
0
votes
1
answer
48
views
How to link curl to a program so I can run it on another machine?
I'm trying to link curl to a program in CodeBlocks and then run it on another PC with Windows. If I set environmental variable %PATH% everything works fine, however if I remove it an error appears ...
1
vote
0
answers
37
views
CodeBlocks Keeps Crashing
My code blocks keeps popping up this grey box:
whenever I type char, printf or any variable that I'm using. I'm guessing it's the suggests bar that's not loading properly. Anyone know how to fix this?...
0
votes
1
answer
76
views
Codeblocks : "Error creating process (error 193) " with SDL2
I want to debug a code with codeblocks. It is not possible if I use the SDL2 lib.
The building of the bin/debug/*.exe is ok...but when I run it there is the following message:
Starting debugger: gdb....
0
votes
0
answers
75
views
Number of actual printed lines in code blocks output console (fortran compiler)
Why the output console of code blocks displays only the last 25 printed lines, although my code is written to print "hello world" for 60 times for example? This is my code:
program hello
...
0
votes
0
answers
46
views
Is there anyway to make a program universally accepted by all compilers? [duplicate]
I have typed out a simple program counting the number of positive divisors of a number in C, which works in CodeBlocks GCC compiler but not in the online compiler provided by the school, where it ...
0
votes
0
answers
48
views
How do I install GTK+ 4 to work with Code::Blocks Windows 10
I have absolutely no clue how to install GTK+ 4 to work with Code::Blocks on Windows 10.
Can someone please write up some instructions on how to install GTK+ 4 and specifically how to connect ...
-2
votes
1
answer
206
views
Defining getch() function in c/c++
Why when I use getch() function in c++, I should include "conio.h" header file ... while in c it runs without include this file?
I'm using codeBlocks as my IDE.
I expect that I must include &...
1
vote
1
answer
50
views
Table with kableExtra
I want to make the table as in the picture using kableExtra.
I am trying to use the R code chunk below, but I get unexpected result. Could you please show me how to fix it?
```{r, echo=FALSE}
library(...
0
votes
0
answers
43
views
How do I add 32 bit libraries to Code::Blocks using GNU GCC in Win 10
Currently using GNU GCC 64 bit with Code::Blocks as the IDE. When adding the -M32 checkbox to compile, it can't find libraries. I know the problem. They are installed (I have found the paths in ...
0
votes
2
answers
90
views
Microsoft Visual Studio - How to use this program for C programming [closed]
You might say go with CodeBlocks for writing in C. I have been using CodeBlocks for a while now.
The problem is I only see C++ "workloads" when I run Visual Studio. I need to learn how to ...
-1
votes
1
answer
69
views
Win32 API application glitching [closed]
I am new to the Win32 API, and I tried making my own calculator, but when I run the code, the edit control starts to glitch, and I can't see what has been inputted.
I tried adding a button which ...
0
votes
0
answers
16
views
how to split the screen in glut codeblocks for multiplayer in c
I have a project that requires me to make a game of two players at the same time while controlling the game characters via the keyboard and the mouse. To start, I need to know how to separate the ...
0
votes
0
answers
61
views
Different outputs for different IDEs for same c++ program using continue keyword [duplicate]
For the following c++ program :
#include<iostream>
using namespace std;
int main()
{
int i=1;
while(i<=10)
{
if(i==5)
continue;
cout<<endl<<i;
...
0
votes
1
answer
126
views
Why is wxWidgets erring out when I follow the instructions?
I am following the Hello World tutorial for WxSmith using CodeBlocks 20.03 and wxWidgets 3.1 in Ubuntu 20.04. This is later confirmed to also happen in Windows 10 using the same CodeBlocks and ...
0
votes
0
answers
23
views
CMAKE wont configure even when I point it to compiler
I am trying to install OPENCV for codeblocks but i cannot get it working. I cant even get past the CMAKE part as it is complaining about the compiler. I looked in codeblocks which compiler i have been ...
0
votes
0
answers
14
views
Why can't code::block build file everytime every time after I restart my computer?
The code::block can't build file everytime after I restart my computer. It will show that there is error like this:
enter image description here
or "A debugging checking in this application has ...
0
votes
0
answers
30
views
google docs extension shortcut
Im tried to write a post with code in google docs.
I have codeblock extension, but it‘s a little bit annoying to add code blocks-several clicks are needed…
I want google docs‘s code block extension ...
0
votes
0
answers
69
views
I think i am having a stoi function error in my C++ project, using CodeBlocks
I have these 2 related files:
PERSON.H::
#include<iostream>
#include<string.h>
using namespace std;
class Person
{
private:
string Name;
string Surname;
float ...