Most voted "codeblocks" questions
Codeblocks is an integrated multi-platform open source development environment. It is being developed in C++, using wxWidgets. Its architecture is plugin oriented, so that its functionalities are defined by the plugins provided to it. Code::Blocks is intended for development in C/C++ and Fortran. If the question is not about Codeblocks, do not use this tag, even if you are using Codeblocks in your project.
Learn more…54 questions
Sort by count of
-
3
votes1
answer155
viewsPort Visual Code C++ to another language
Next, I have a simple Shellexecute code that was done in Visual C++ 2012, but because it is a closed and paid platform and because I need my customers to keep downloading more programs I would like…
-
2
votes0
answers54
viewsProblem with SFML in Code Blocks Windows 32 bits
I installed SFML in Codeblocks using the instructions here http://www.sfml-dev.org/tutorials/2.0/start-cb.php So I compiled the sample code from there, which should display a window with a green…
-
2
votes2
answers1132
viewsChange compiler settings in Codeblocks
I will participate in a clear programming and need to configure the compiler, in the case of Codeblocks, in the following ways: C: GCC compiler version 8.2 or higher - Command line: gcc -lm -O2…
-
2
votes0
answers5015
viewsUndefined Reference to
I have a program that’s divided into your main, city.c and city.h. Main: #include "city.h" int main() { FILE *entrada; FILE *saida; Cidade *cidades; entrada = fopen("entrada.c", "r"); int…
-
2
votes1
answer48
viewsWhy does the console even appear using a library to create a window?
I wanted to understand why the console also opens when a program is made using the SDL2 library. I am using codeblocks in windows 10. How do not appear the console and only appear the window…
-
2
votes1
answer83
viewsI tried to make my program in C open already in full screen, but it appeared 'error: expected declaration specifiers or '...' before Numeric Constant'
I want my program to already open in full screen when I click to run. I researched if I had how to do this and saw some recommendations to put this code at the beginning of the program # include…
-
1
votes0
answers581
viewsAuto-Complete from IDE Code::Blocks does not display the methods from the Allegro library
I’m using Allegro in Code:Blocks, but when it comes to something from Allegro Code::Blocks can’t use Autocomplete, what should I do to fix it?
-
1
votes1
answer260
viewsCode::Blocks doubts
1-How do you put it as a pattern? unintentionally at first when he asks the question I asked not to question more unintentionally and now even reinstalling not appear more. 2-has how to make it in…
-
1
votes1
answer94
viewsWhy does code Blocks compile using g++ in a project configured as "C"
I’m learning C and using Codeblocks, I went on File > New > Project > "Console Application" > "GO" > Next and the question appears Please select the language you want use. I select C.…
-
1
votes0
answers46
viewsHow to put the Caret (cursor) in the right position?
When I create a new method, it looks like this: void teste(){|} Note that the cursor is between {}, and when I press enter gets like this: void teste(){ |} Now the cursor is behind the }, and that’s…
codeblocksasked 8 years, 2 months ago Filipi Maciel 395 -
1
votes0
answers204
viewsSFML build error in Code::Blocks
I need to make a game for a college subject using the SFML library and the C++ language. I followed this tutorial to configure the Code::Blocks, and pasted the following test file indicated in the…
-
1
votes3
answers4341
viewsI cannot use accents in Code Blocks
Hello! I have a code: include stdio.h> include locale.h> int main() { setlocale(LC_ALL,"portuguese"); printf("Agora não tem mais problema algum para utilizar acentuação!\n"); return 0; } Set…
-
1
votes1
answer657
viewsUse two code::Blocks at the same time?
Does anyone know how to use two code::Locks at the same time? Every time I try to open two just gets the last one open.
codeblocksasked 7 years, 1 month ago Pedro Santos 13 -
1
votes2
answers7869
viewsIndentation of code C
Two other people and I are developing a C code, and each made their own part of the code, but it got very "messy", is there a command for the codeblocks, the IDE we’re using, or some site that…
-
1
votes0
answers86
viewsError in libpq-fe library. h
I am using codeblocks and the library however I am with the following error: fatal error: libpq-fe.h: No such file or directory I have already added the path pointing to the header file by the…
-
1
votes1
answer87
viewsProgram with Recursion in C
I need to make a program that is a game, where the user will input a number and I must determine if it is possible for the user to win the game through a printf saying "Yes" or "No", it is not…
-
1
votes1
answer58
viewsBitdefender reporting virus when compiling c++ source with Codeblocks
I’ve been using Bitdefender for a few years, and Codeblocks for some time, and today specifically the programs weren’t compiling, until I saw that Bitdefender was reporting viruses…
-
1
votes1
answer3892
viewsMy question is about the error: 'Function' "Was not declared in this Scope"
I am creating a system of records and login as a form of practice, but I keep finding this error and although searched a little, I can not find the solution. #include "registration.h" //Outras…
-
1
votes0
answers46
viewsProblem Including SDL in Codeblocks
I’m downloading the mingw SDL from this website. I unzipped the zipped file and copied those folders: bin, include, lib And I taped them all together on the way to Codeblock C: Program Files (x86)…
-
1
votes0
answers21
viewsTransparent SMFL screen
I just installed SFML, I did everything correctly as it seems, because the program does not indicate errors and I repeated the process carefully 3 times in codeblock and twice in visual studio…
-
0
votes1
answer1507
viewsExecutable created by Codeblocks opens and closes alone
I have a problem with my Codeblocks program. When I compile and run the program, Codeblocks creates a executable in the Debug folder that is inside the bin folder, located in the same folder where…
-
0
votes1
answer130
viewsError with wxWidgets wxmsw30u_gcc_custom.dll
http://prnt.sc/8lfnv5 I’m starting with C/C++ and got the code::Blocks as compiler, I want to use wxWidgets, compile an application, a hello world, when opening by code::Blocks it works normal, when…
-
0
votes1
answer2020
viewsProgram requesting libgcc_s_dw2-1.dll
This mistake is happening: I’m using Code::Blocks, trying to create a program with wxWidgets.…
-
0
votes2
answers6901
viewsCodeblocks -> "It seems that this project has not been built yet. Do you want to build it now?" - How do I fix this?
It seems that codeblocks cannot find the folder where my project is. I have tested the separate compiler and it is working perfectly. Does anyone know how I fix it? Look at: gcc -Wall -g -c…
-
0
votes1
answer97
viewsHow to Link to boost library in codeblocks! (linux Fedora)
Hello, I downloaded the boost.tar file, extracted it, compiled it and installed it in my Fedora 23! But I can’t make codeblocks link to these new libraries. How do I link?
-
0
votes1
answer148
viewsSegmentation Fault when initializing Code Blocks in Fedora
Error presented: Try to migrate conf-Folder The Places Where the Configuration files and user-data files are stored have been changed to be more standard-conform. Now Moving "/root/.…
-
0
votes1
answer75
viewsEnable variable spacing Code::Blocks
I love Code::Blocks, only that there is a problem, I wanted it to already space the instructions as soon as I put ';' the same as Visual Studio. Ex: for(int i=0;i<n;i++)`` >> ``for(int i =…
-
0
votes1
answer155
viewsError writing binary file using fwrite
Why this code snippet DataRootDir data = rootdir[i]; fwrite (data, sizeof(DataRootDir), 1, arq); always returns the error error: cannot convert 'DataRootDir' to 'const void*' for argument '1' to…
-
0
votes1
answer95
viewsInstallation Codeblocks Centos
I’m a beginner in programming, I only did one course in college. I would like to install Codeblocks on Centos 7 (on a college machine) to edit a C program, but I’m having a hard time. I downloaded…
-
0
votes1
answer536
viewsProgram in c presenting output, strange different from the value of variables
I’m having a problem running a program on and c that when I compile it and run it shows me a value that is not set in my variable I’m thinking it’s some bug with the ide or something related to the…
-
0
votes1
answer721
viewsProject error in Code::Blocks
I have installed the g++ and Code::Blocks (Linux-Ubuntu) and created a project and used the test file code (main.cpp) of Code::Blocks, when I give run a written tab appears It seems that this…
-
0
votes0
answers28
viewsC++ Reduction of space spent
I’m creating a c++ project with Allegro 5 using code::Blocks, and I put the Allegro files right into the project folder to make it simpler. I’m only using functions to display images and text with…
-
0
votes1
answer182
viewsCodeblocks compile error - Libboost
I am compiling here in Codeblocks, already a week that I am trying to compile, but always some error, and now that is at the end of the compilation is giving some errors and I am not able to solve…
-
0
votes1
answer363
viewsDoubts about renaming files in codeblocks
I wonder how I do to rename this file. https://i.imgur.com/Bureers.png
codeblocksasked 6 years, 4 months ago Wellington Almeida 1 -
0
votes2
answers242
viewsCode::Blocks does not print pointer value
I developed a C code to print the value and address of the variable x using a p pointer, but Code::Blocks does not print the values. #include <stdio.h> #include <conio.h> int main() {…
-
0
votes1
answer129
viewsObject created within conditional If generates c++ build error
I’m having trouble compiling a C++ program in IDE Code::Blocks. What I’m trying to do is access an object that was instantiated within an If parole. I will put down the codes of the main program and…
-
0
votes0
answers900
viewserror: Ld returned 1 Exit status C++
I wrote this code in C++ in Codeblocks with the Register Residents class, but this giving the error error: Ld returned 1 Exit status that I haven’t found anything that would help me on the internet.…
-
0
votes1
answer177
viewsUnable to locate -lGL
I’m running the default Codeblocks code for Opengl on Ubuntu: /* * GLUT Shapes Demo * * Written by Nigel Stewart November 2003 * * This program is test harness for the sphere, cone * and torus…
-
0
votes3
answers91
viewsMy program compiles but hangs on the first printf
#include<stdio.h> void main() { int n1,n2,n3,maior,menor; printf("Primeiro numero: "); scanf("%d", n1); printf("Segundo numero: "); scanf("%d", n2); printf("Terceiro numero: "); scanf("%d",…
-
0
votes1
answer33
viewsList code not compiling well
Hello. I’m trying to learn about pointers and lists and I made a code that contains a menu and the option to enter as many values as I want. I made the code in the most recent codeblocks using W10…
-
0
votes3
answers81
viewsHow do I resolve this error by trying to delete a specific node from a chained double list?
In my project, I am making a double-padlock list in C, where it has simple objectives, such as adding at the beginning or end, removing a specific or zeroing. I took a shallow code and was adding…
-
0
votes0
answers71
viewsCode::Blocks - Std::bad_alloc
After I run this simple code. #include <iostream> #include <jdbc/cppconn/connection.h> #include <jdbc/cppconn/driver.h> int main() { sql::Connection *con; sql::Driver *driver;…
-
0
votes1
answer37
viewsDoubt - Let the user choose which line to delete
I am developing a small CRUD in the C++ language, using Mysql c++ Connector 8.0.17, and I came across this question: void Management::excluir(){ std::cout << std::endl << "…
-
0
votes2
answers1167
viewsInsert an empty space between a concatenation of strings in C, without the string library. h
I am implementing this code in order to receive two strings and compare them, if the two strings are different I concatenate the two into one vector, but I want to add a blank in them. How can I…
-
0
votes0
answers27
viewsHow to correct __imp errors?
I found on github an HTTP/HTTPS library header (https://github.com/yhirose/cpp-httplib), which says it is only necessary to import it into the archive and use it. I created the code: #include…
-
0
votes0
answers34
viewscode::Locks not copying Ubuntu 20.04.2?
I use Ubuntu 20.04.2 and have always used Visual Studio Code to program. However, in the c language, I need to use the <Allegro library. h>, and then I need to use the code::Blocks. However, I…
-
0
votes1
answer30
viewsMy program keeps going down
I don’t know why this is happening, but I need help figuring out why the program is crashing. My program aims to use Kruskal’s algorithm to find the lightest paths between cities (airports and…
-
-1
votes1
answer1040
viewsScript to swap a character for an asterisk in a string
Hello! I need to make a program that reads a text (string) typed by the user with a maximum of 500 characters, and print this text by replacing the first letter of each word with an asterisk '*'.…
-
-1
votes2
answers538
viewsCodeblocks compiles (linux operating system Mint) but does not show on screen
People installed Codeblocks on Linux Mint and so it opens perfectly you make the program it compiles beauty (If you have errors it shows), however, it does not open the interactive screen (sorry for…
-
-1
votes2
answers169
viewsFunction clone stack value
Hello, I have an activity that asks me some functions, among them a cloning functionValorPilha(struct no **Stack) (this form is mandatory), but whenever I try to compile what is written does not…