News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Error during program compilation

Started by Fredy, May 28, 2023, 05:15:56 PM

Previous topic - Next topic

Fredy

Hi,
I am using codeblocks release 20.03. Recently installed. I get a warning message "main is usually a function" and a syntax error when I use user-defined functions. Any ideas?

The screenshot attached shows a simple program, for instance.

Miguel Gimenez

The prototype must end with a semicolon.

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]

Fredy

That did fix the issue, thank you all