News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

#define error in CodeBlocks

Started by PsychadelicGumballMachine, September 07, 2023, 01:09:49 AM

Previous topic - Next topic

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

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]

stahta01

#2
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.
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]