User forums > Help

#define error in CodeBlocks

(1/1)

PsychadelicGumballMachine:
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.

stahta01:
https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

stahta01:
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.

Navigation

[0] Message Index

Go to full version