Author Topic: Building C::B with wx3.3  (Read 16635 times)

Offline wtfisgoingoff

  • Multiple posting newcomer
  • *
  • Posts: 30
Building C::B with wx3.3
« on: August 05, 2025, 04:40:11 pm »
What is CB_CPP_STD ?  What value shoud I set it to?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7806
    • My Best Post
Re: Building C::B with wx3.3
« Reply #1 on: August 05, 2025, 05:01:05 pm »
What is CB_CPP_STD ?  What value shoud I set it to?

From the name I would try "17" to see if it works. My guess is C++ library standard.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1766
Re: Building C::B with wx3.3
« Reply #2 on: August 05, 2025, 07:15:18 pm »
Morten mentions in the commit setting it to
Code
-std=gnu++20

EDIT: I will use -std=gnu++11
« Last Edit: August 05, 2025, 07:26:58 pm by Miguel Gimenez »

Offline wtfisgoingoff

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: Building C::B with wx3.3
« Reply #3 on: August 06, 2025, 05:40:51 am »
Morten mentions in the commit setting it to
Code
-std=gnu++20

EDIT: I will use -std=gnu++11
Thx. It worked.

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 156
Re: Building C::B with wx3.3
« Reply #4 on: August 06, 2025, 11:28:17 pm »
The Codeblocks IDE is asking for a definition for CB_CPP_STD in the Global Variables screen ? How is it defined, where is it defined and what is the correct definition ?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1766
Re: Building C::B with wx3.3
« Reply #5 on: August 07, 2025, 02:52:40 pm »
Have you read the previous posts in this thread?

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 156
Re: Building C::B with wx3.3
« Reply #6 on: August 07, 2025, 07:09:16 pm »
I've read the thread several times. Three different suggestions, but nothing says how to define it within the IDE. The IDE (13670) is prompting for a definition in the Global Variables, and if it isn't correct the compilation fails. Am attempting to build svn version 13696 from source.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1766
Re: Building C::B with wx3.3
« Reply #7 on: August 07, 2025, 07:35:28 pm »
Just define it in the prompt, see attachment

Offline Frank_CB

  • Almost regular
  • **
  • Posts: 156
Re: Building C::B with wx3.3
« Reply #8 on: August 08, 2025, 07:28:28 am »
@Miguel Gimenez

The information in the attachment is exactly what I needed ! Thanks !! ;D ;D

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6090
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Building C::B with wx3.3
« Reply #9 on: September 25, 2025, 09:25:49 am »
I add a line in the wiki document here:

https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows#Open_project

Hopefully it will help others.  :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.