Code::Blocks Forums

User forums => Help => Topic started by: wtfisgoingoff on August 05, 2025, 04:40:11 PM

Title: Building C::B with wx3.3
Post by: wtfisgoingoff on August 05, 2025, 04:40:11 PM
What is CB_CPP_STD ?  What value shoud I set it to?
Title: Re: Building C::B with wx3.3
Post by: stahta01 on August 05, 2025, 05:01:05 PM
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.
Title: Re: Building C::B with wx3.3
Post by: 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
Title: Re: Building C::B with wx3.3
Post by: wtfisgoingoff on August 06, 2025, 05:40:51 AM
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.
Title: Re: Building C::B with wx3.3
Post by: Frank_CB 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 ?
Title: Re: Building C::B with wx3.3
Post by: Miguel Gimenez on August 07, 2025, 02:52:40 PM
Have you read the previous posts in this thread?
Title: Re: Building C::B with wx3.3
Post by: Frank_CB 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.
Title: Re: Building C::B with wx3.3
Post by: Miguel Gimenez on August 07, 2025, 07:35:28 PM
Just define it in the prompt, see attachment
Title: Re: Building C::B with wx3.3
Post by: Frank_CB on August 08, 2025, 07:28:28 AM
@Miguel Gimenez

The information in the attachment is exactly what I needed ! Thanks !! ;D ;D
Title: Re: Building C::B with wx3.3
Post by: ollydbg 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.  :)