News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Building C::B with wx3.3

Started by wtfisgoingoff, August 05, 2025, 04:40:11 PM

Previous topic - Next topic

wtfisgoingoff

What is CB_CPP_STD ?  What value shoud I set it to?

stahta01

Quote from: wtfisgoingoff on August 05, 2025, 04:40:11 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. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Miguel Gimenez

#2
Morten mentions in the commit setting it to
-std=gnu++20

EDIT: I will use -std=gnu++11

wtfisgoingoff

Quote from: Miguel Gimenez on August 05, 2025, 07:15:18 PM
Morten mentions in the commit setting it to
-std=gnu++20

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

Frank_CB

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 ?

Miguel Gimenez

Have you read the previous posts in this thread?

Frank_CB

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.

Miguel Gimenez

Just define it in the prompt, see attachment

Frank_CB

@Miguel Gimenez

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

ollydbg

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.