Code::Blocks Forums

User forums => Help => Topic started by: PsychadelicGumballMachine on September 07, 2023, 01:09:49 am

Title: #define error in CodeBlocks
Post by: PsychadelicGumballMachine on September 07, 2023, 01:09:49 am
I am not sure if this is an error with code blocks per se, but I believe it is.  I don't know what else it could be.  I am trying to define a constant with:
#define ARRAY_SIZE 5.  However upon attempting to compile, I got the error:
error: expected ';' , ',' or ')' before numeric constant.

I am not sure what that means and I did not used to get this kind of message when using #define in the past.  Anyone who can help me would be greatly appreciated.  This is being written in C if it matters.

Thank you in advance.
Title: Re: #define error in CodeBlocks
Post by: stahta01 on September 07, 2023, 03:06:36 am
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
Title: Re: #define error in CodeBlocks
Post by: stahta01 on September 08, 2023, 12:30:57 am
If you really think it is a Code::Blocks problem post a full build log.
If you do not, then post your code and the full build log on a website that helps newbie coders.

Tim S.