Recent Posts

Pages: 1 ... 3 4 5 6 7 [8] 9 10
71
Using Code::Blocks / Can't find declaration for std::to_string() and std::stoi()
« Last post by Pacfrog on April 14, 2025, 04:40:03 pm »
Hello, I'm using Code::Blocks on Debian 12, with the following version info: Version: 20.03+svn13046-0.1+b2.I have noticed that when I write standard C++ code using std::to_string() or std::stoi(), the code compiles and runs perfectly, but when I right-click and choose "Find declaration", Codeblocks shows:

Warning: Not found "to_string"
Warning: Not found "stoi"

Here's my sample code
Code
#include <iostream>
#include <string>

using namespace std;

int main() {
  string str = to_string(123); // Double-click 'to_string' then right-click Find declaration of: 'to_string'
  int i = stoi("123");         // also here
  return 0;
}


Things I've tried:
1. Verified string header is present.
2. Tries the same setup on Windows with Codeblocks, and the exact same problem happens.

Thanks in advance for your help!
This is my first time posting here, so please kindly guide me if I missed anything.
72
Help / Most download links for CB 25.03 not working
« Last post by gtafan on April 14, 2025, 04:23:37 pm »
I tried to download the 32 bit version of CB 25.03, but always geting this error mesage: "... file could not be found or is not available.  Please select another file.", the same problem for the most 64 bit versions.
73
Development / Compile CB 25.03 from Source with tinyxml Problem
« Last post by hesti on April 14, 2025, 03:53:04 pm »
Compiling Codeblocks 25.03 from source.

My system is a current MX Linux, so Debian at its core.

Unpack -> bootstrap -> configure -> make
Runs fine, but then the plugins in "contrib" aren't included.

./configure --with-contrib-plugins="all" --prefix=/usr

make

Runs fine, but stops because many error messages during linking look something like this:

AutoVersioning.cpp:(.text+0x81d3): undefined reference to `TiXmlElement::~TiXmlElement()'

make stops at some point. This could be a problem for me. The normal plugins and src/plugins
run normally, but not under src/plugins/contrib. The exact cause was that tinyxml wasn't linked during linking. Everything is fine with plugins. Not in plugins/contrib.

I'm sure this can only be my fault. If you have the same problem, feel free to use my workaround script. As usual, it's provided without any warranty.

Perhaps someone knows more about it and can share it.

Hesti
74
Using Code::Blocks / Re: C::B plugin to show current git branch?
« Last post by cacb on April 14, 2025, 11:46:34 am »
I just added the feature to cbvcs plugin as it is useful for me.
Thanks, I appreciate your efforts even though it it is not available to me using Nightly Builds on Windows
75
Help / Pls help if you can!
« Last post by Bansespoll on April 14, 2025, 06:44:50 am »
Hey I downloaded the 64 bit version of CodeBlocks on my new Mac book air m1 and when I try to run a program it says this: It seems that this project has not been built yet.

Do you want to build it now?

Another problem I have is that when I actually run a program through terminal terminal didn't show anything for example Hello world and I had to go to my folder then into debug and find an exec file which when I clicked my program run and terminal showed Hello world.

I am a total beginner in c++ and I am coming from Python, but in general I am a beginner to programming. Pls help if you can! I am trying to start programming but I can't and I really want to start!
76
General (but related to Code::Blocks) / Any idea?
« Last post by Magnstowiter on April 14, 2025, 06:26:53 am »
I actually use code:blocks for school for a while and I don't like the icon of cb at all. It seems old and doesnt fit with other apps, is there any chance that someone owns a transparent copy of the forum icon: .
Thank you!
77
Using Code::Blocks / Re: C::B plugin to show current git branch?
« Last post by christo on April 13, 2025, 06:53:55 am »
Trouble is, I use C::B a lot under windows and for that I rely on the Windows nightly builds (that I do not build myself) available via this forum. The nightly builds work perfectly fine, but there does not seem to be an easy way to install a plugin like cbvcs in this situation. Or maybe I am mistaken?
Hi cacb, you are right,  installing without source code is not possible unless nightly installation contains header files as well. Also, I've never built the plugin for Windows as I don't have a Windows machine I use for development.

I just added the feature to cbvcs plugin as it is useful for me.

Just changes is plugin is not enough, CB core code also need some changes. For any other plugins to show the branch also similar change is required. Attaching the change.

Thanks, Christo
78
Using Code::Blocks / Re: C::B plugin to show current git branch?
« Last post by stahta01 on April 13, 2025, 04:01:20 am »
Code
git branch --show-current

Shows current branch
79
Development / Custom variables
« Last post by LETARTARE on April 13, 2025, 01:17:44 am »
Context : writing the programming of a plugin for 'CB'.

In the menu :
Quote
'Project->Build Options ...->Custom variables'
:
What are the class methods for reading all the variables for the project and for the different targets ?
80
Announcements / Re: successor of 20.03 available?
« Last post by gtafan on April 12, 2025, 06:12:46 pm »
Yeah, 25.03 is released.
Finally! Will take a look at it.

Unfortunatelly all links seem to be dead.  :(
Pages: 1 ... 3 4 5 6 7 [8] 9 10