User forums > Help

Error during program compilation

(1/1)

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:
Please use code tags see link for how https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

The prior posted already answered what was the cause of the error.

Tim S.

Fredy:
That did fix the issue, thank you all

Navigation

[0] Message Index

Go to full version