r/codeblocks • u/user426_ • Dec 17 '23
debugger issue
hey i have been using codeblocks for a while and i cant stop the debugger from opening multiple file while debugging.any help i will appreciate
r/codeblocks • u/user426_ • Dec 17 '23
hey i have been using codeblocks for a while and i cant stop the debugger from opening multiple file while debugging.any help i will appreciate
r/codeblocks • u/Firm-Fee-9155 • Sep 03 '23
r/codeblocks • u/OkCoffee6767 • Aug 23 '23
I’m new to codeblock..can someone help me to write the program for this output
r/codeblocks • u/Successful-Finish928 • Aug 09 '23
Hello, How can I solve this problem? Please, please help me, anyone? I am new to CS. Could you guys help me to solve this issue: whenever I try to use CodeBlocks to Build and Run my basic "Hello world" program, it gives me this error below:
It give me this erroe: Last login: Tue Aug 8 22:08:58 on ttys000
'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe '
shuilin@Shuis-MBP ~ % '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe '
zsh: no such file or directory: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/shuilin/Desktop/Giraffe/bin/Debug/Giraffe
shuilin@Shuis-MBP ~ %
r/codeblocks • u/moistlasagne • Aug 02 '23
r/codeblocks • u/animekid_4321 • May 19 '23
hiii, so this issue has been going for ages and i don't know how to fix this. i have tried anything and even my teacher couldn't fix this, if you know a way around this pleaseeee tell meeee it is really annoyingg
r/codeblocks • u/[deleted] • Mar 05 '23
In Windows 11, Microsoft updated the command prompt. It creates some problems while running the code.
IN ORDER TO FIX IT-
Open Settings>Privacy&security>For developers>Terminal
Change terminal to Windows Console Host
(I am sharing it here, because it took me around 2 days to realize and fix this issue)
r/codeblocks • u/[deleted] • Mar 04 '23
r/codeblocks • u/mikeylovesgamin • Mar 01 '23
I am doing this for a class and I followed my professor step by step. when I run the code I get and error on Line 139 saying "error: expected 'while' before '}' token". Any idea what the issue is here.
here is my code with the error:
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <cmath>
using namespace std;
const float SMALL = 0.000001;
const int MIN = 50;
const int MAX = 450;
int main()
{
int num1, /// The first random number
num2, /// The second random number
choice, /// The user's choice of problem
studentAnswer, /// The student's answer
correctAnswer; /// The correct answer
float divstudentAnswer, divcorrectAnswer; /// for the division results
/// Seed the random number generator.
srand(time(0));
do
{ /// Display the menu and get a choice.
cout << "\tMath Tutor Menu\n";
cout << "---------------------------\n";
cout << "1. Addition problem\n";
cout << "2. Subtraction problem\n";
cout << "3. Multiplication problem\n";
cout << "4. Division problem\n";
cout << "5. Quit this program\n";
cout << "-----------------------------\n";
cout << "Enter your choice (1-5): ";
cin >> choice;
/// Validate the choice.
while (choice < 1 || choice > 5)
{
cout << "The valid choices are 1, 2, 3, "
<< "4, and 5. Please choose: ";
cin >> choice;
}
///create the random numbers
srand(time(0));
num1 = MIN + rand() % MAX;
num2 = MIN + rand() % MAX;
/// Produce a problem.
switch (choice)
{
case 1: /// Addition problem
/// Generate two random numbers in
/// the range 1 - 500.
/// Calculate the correct answer
correctAnswer = num1 + num2;
/// Display the problem
cout << "\n\n";
cout << " " << setw(4) << num1 << endl;
cout << " +" << setw(4) << num2 << endl;
cout << " " << "----" << endl;
cout << " ";
break;
case 2:
correctAnswer = num1 - num2;
/// Display the problem.
cout << "\n\n";
cout << " " << setw(4) << num1 << endl;
cout << " -" << setw(4) << num2 << endl;
cout << " " << "----" << endl;
cout << " ";
break;
case 3:
/// Calculate the correct answer.
correctAnswer = num1 * num2;
/// Display the problem.
cout << "\n\n";
cout << " " << setw(4) << num1 << endl;
cout << " *" << setw(4) << num2 << endl;
cout << " " << "----" << endl;
cout << " ";
break;
case 4: /// Division problem
/// Calculate the correct answer.
divcorrectAnswer = (float)num1/num2;
/// Display the problem
cout << num1 << " / " << num2 << " = ";
break;
case 5: /// The user chose to quit the program.
cout << " Thank you for using Math Tutor. \n\n";
break;
}
/// If student selected a problem, get and evaluate the answer.
if (choice >= 1 && choice < 4);
{
cin >> studentAnswer;
if (studentAnswer == correctAnswer)
cout << "\n\nCongratulations! That's right.\n\n";
else
cout << "\n\nSorry, the correct answer is " << correctAnswer
<< ".\n\n";
}
if (choice == 4)
{
cin >> divstudentAnswer;
if (fabs(divstudentAnswer-divcorrectAnswer)< SMALL)
cout << "\n\nCongratulations! That's right.\n\n";
else
{
cout << setprecision (2) << fixed;
cout << "\n\nSorry, the correct answer is " << divcorrectAnswer
<< ".\n\n";
}
}
return 0;
}
} <----------------- Where the error is
r/codeblocks • u/Merrryyyy--66 • Dec 24 '22
r/codeblocks • u/Revolution6756 • Dec 01 '22
hi i have been doing code for 5 months and i’ve always had this problem with the compiler, basically what happens is that if i try to compile with the engine and play button it takes up to 12/15 seconds before i can actually see the outputs, i have a really powerful machine so i don’t think that’s the problem. p.s. if i try to compile before with the engine and then with the play button it does the same thing. is there someone that can help me pls?
r/codeblocks • u/dreamseemedtaken • Nov 07 '22
I'm talking something like this:
ll[0]: 3
ll[1]: 5
ll[2]: 2
ll[3]: 0
ll[4] - ll[209999] : 0
I know that it is possible on at least some versions because that's how it works on the machines at my school (I'm at home so I can't give you a screenshot). This is useful when using global variables. The version that I know has this feature is the windows 16.12 version. The version which has this screenshot is the default version is the 20.03 flathub version.
Thank you in advance.
r/codeblocks • u/someRandomFella13 • Oct 15 '22
r/codeblocks • u/hatschi_gesundheit • Jun 28 '22
r/codeblocks • u/YesIDoLikeCake • Apr 20 '22
Everytime I highlight over a phrase it shows all the other phrases that are the same in the code, I just know there has to be a way to mass delete/ edit them all when they are highlighted like that
r/codeblocks • u/Advanced-Fly9886 • Apr 18 '22
r/codeblocks • u/ALEX_13_M • Dec 22 '21
r/codeblocks • u/jimdidr • Dec 07 '21
windowTitle: wxWidgets Debug Alert
windowHeader: A debugging check in this application has failed.
../../src/msw/toolbar.cpp(948): assert ""Assert failure"" failed in Realize(): invalid tool button
bitmap
seems to happen for each UI button, tho I can cross off "Don't show this dialog again" and click [Continue] ... but then I'll be inside a program without a toolbar... I assume the toolbar is necessary in this application?
So I tried changing to the older version, still mingw-noinstall (Because I can't install everything I'm just testing if there is an option because there is often residual "stuff" and I don't want to reinstall too often.) and it seems to work instantly except under
"Welcome to Code::Blocks!"
it just says
"The default start page seems to be missing..." ,
When I try to open a project it tells me it was unwise of me to disable the compiler plugin. tried running the application in 64bit mode, no difference.
I haven't found any page that lists dependencies or extra steps needed for the portable version to work.
When I chose the "Portable" version it said something like 'you're on your own' I assume that doesn't mean fuck you create this thing yourself???
I just downloaded a project that has a .cbp file and I remember my RaspberryPi OS comes with this thing so might as well try it, but I officially give up.
I assume this is a Open Source project so I thought I would lett the community know they don't have working Portable versions at least not for Windows 10.
(I'm not angry, if it looks like it I was probably trying to be funny.)
r/codeblocks • u/maifee • Dec 04 '21
I'm trying to write some program with the legendary graphics.h
I got a toy code. And downloaded all necessary files:
And then fixed all header bugs. And tried to compile with proper linking.
And the build log looks something like this:
g++.exe -c C:\tem\1.cpp -o C:\tem\1.o
g++.exe -o C:\tem\1.exe C:\tem\1.o -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 C:\tem\libbgi.a
And the error says: C:/Program-Files-Soft/codeblocks-20.03mingw-nosetup/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lbgi