Enable compiler output pane in Codeblocks

This is probably a really noob question, but the fact of the matter is that my Code::blocks wouldn't show me errors when it compiles - it only shows a red bar next to the offending line as shown...

error: Class has not been declared despite header inclusion, and the code compiling fine elsewhere

So I have a class included in another class that keeps throwing a compile error of the form "error: 'ProblemClass' has not been declared. The files are set up thusly: #ifndef...

Opening a file from command line arguments in C

I want my C program to ask the user to type the name of the file they want to open and print the contents of that file to the screen. I am working from the C tutorial and have the following code...

C++ Pixels In Console Window

In C++ using Code::Blocks v10.05, how do I draw a single pixel on the console screen? Is this easy at all, or would it be easier to just draw a rectangle? How do I color it? I'm sorry, but I just...

C++ Boost: undefined reference to boost::system::generic_category()

I am trying to include Boost libraries in my project and have been facing issues in the same. I am on Ubuntu 12.10 with Codeblocks IDE and tried installing the libraries manually reading...

Changing default terminal in Codeblocks

Windows cmd does not support ANSI colour codes and there are a lot of better terminals in the internet. I'm new to code::blocks and want to change the default terminal. What I did...

How does Radix Sort work?

I don't know why this is so hard for me to wrap my head around. I've looked through the wiki pages, and pseudo code (as well as actual code) trying to understand how radix sort algorithms work...

How to use code block formatting in gmail (or any other email)?

This question is not very technical, but I am trying to do something specific with formatting code for use in emails. I am trying to email a colleague several command line prompts like the one...

Codeblocks run with Visual C++ developer tools

When i create a new project an alert box opens up asking Multi-threaded Dynamic CRT mode or Multi-threaded Static CRT mode what's the difference ?? And Explain..

How do you specify a debugger program in Code::Blocks 12.11?

I am trying to step through my program and I get the following message from Code::Blocks Selecting target: Debug ERROR: You need to specify a debugger program in the debuggers's settings. (For...

fread is terminating before accepting all user inputs(from stdin)

Here is a solution to a CODECHEF Problem "INTEST", which basically tests how fast IO operation is done by a code. Input The input begins with two positive integers n k (n, k<=107). The next n...

"error: assignment to expression with array type error" when I assign a struct field (C)

I'm a beginner C programmer, yesterday I learned the use of C structs and the possible application of these ones about the resolution of specific problems. However when I was experimenting with my...

Sleep | warning implicit declaration of function `sleep'?

I am learning C. In this program I use sleep function to slowdown a count down. My text book doesn't specify a library I should include to use the sleep function. So I use it without including...

Unable to find CMake in Android Studio

I need to add C/C++ code in my Android program for which I needed LLDB, CMake, and NDK. I found LLDB and NDK in SDK manager, but CMake is missing from there. I tried manually downloading it from...

Code::Blocks error: ld returned 1 exit status

I'm using Code::Blocks v 16.1.0.0 along with the MINGW that came with it. There is a problem with the linker. I cannot link a single header / source file to a source file using #include "sth". To...

Why does Tensorflow Reshape tf.reshape() break the flow of gradients?

I am creating a tf.Variable() and then create a simple function using that variable, then I flatten the original variable using tf.reshape() and then I take the tf.gradients() between the function...

Armstrong numbers. print armstrong numbers

I kindly request those who think this question have been asked earlier, read on first. I need to print all armstrong numbers between 1 and 10000. My problem is that whenever my program is run and...

Works with one compiler, but not with other

I'm trying to code a very simple program using C language. I'm using Visual Studio and CodeBlocks to make it compiled. But this code: #include <stdio.h> #include <stdlib.h> int main() { float...

CMake Error : execution of make failed on Windows

I am getting errors when trying to build nanomsg project in Windows 7: cmake .. -- Building for: NMake Makefiles -- The C compiler identification is GNU 4.7.1 -- Check for working C compiler:...

How can I increase the accuracy of my Linear Regression model?(machine learning with python)

I have a machine learning project with python by using scikit-learn library. I have two seperated datasets for training and testing and I try to doing linear regression. I use this codeblock shown...

VS Code will not build c++ programs with multiple .ccp source files

Note that I'm using VS Code on Ubuntu 17.10 and using the GCC Compiler. I'm having trouble building a simple program which makes use of additional .ccp files. I'm probably missing something...

How to make Snakemake wrappers work with the {threads} variable

EDIT 27-07-2018: Wrapper does not account for threads. Furthermore, the syntax I`m trying here won't work and as far as I can find similar syntax is not supported. Answer is from cross-post on...

Can I use a Code::Blocks as a MinGW GDB GUI?

We are unit testing with Vectorcast, which lets us use the MinGw GDB, but only the command line version. Some of the younger developers would like something more visual. We do not use...

C compiler broken: is not able to compile a simple test program

On my Dektop and on my Surface Pro 6 CLion has stopped working and I don´t know exactly why. That is written on my Desktop: "C:\Program Files\JetBrains\CLion 2018.3.2\bin\cmake\win\bin\cmake.exe"...

How do I make Codeblocks work on macOS big sur?

I recently installed Code::Blocks (version 17.12) on my MacBook Pro 2020 which runs on macOS Big Sur, but something is not working and I can't figure out why. I also installed Python Launcher and...

How do you debug using 'Code::Blocks 20.03' (the "mingw" version)?

I have built a Console Application using Code::Blocks 20.03, which was installed using codeblocks-20.03mingw-setup.exe. The defaults for the installation directory(see Note01) and the installation...

Can't find compiler executable in your configured search path for gnu gcc compiler in Ubuntu

I have installed Code::Blocks in Ubuntu for the first time and tried to run a simple C program. But I got the error: Can't find compiler executable in your search path (GNU GCC Compiler). I tried...

ResEdit resource editor in Windows suddenly closes its window after launch and cannot find windows.h

I have not been able to solve the problem for a week! Help me please! For several years I have been working with ResEdit on CodeBlocks in Windows without any problems at all. I suppose this...

How to include <numbers> header file and use std::numbers

running on version 11.1.0 of gcc and g++. Every time I run this code I run into issues it says std::numbers was not declared. I tried running g++ randomCodeWhileReading.cpp -o main-std=c++20...

Why is the code after my for loop being ignored?

I don't think you'll need to know the context of the problem to answer this question, but I'll give it just in case. -In the past N weeks, we've measured the amount of rainfall every day, and...

Relevant tags