News:

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

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