[prog] error: "reference 'main' can not be resolved"

Mary mary-linuxchix at puzzling.org
Tue Nov 8 21:10:45 EST 2005


On Tue, Nov 08, 2005, Dan wrote:
> It's been awhile since I've done C programming, so all I can tell you
> is that there's a problem with function "main". (Sorry if that wasn't
> very profound.) Check that it takes its two parameters in the right
> order and that it returns an int. Also check that you include it when
> linking.

Asli isn't trying to solve a problem with a running program, s/he is
trying to gather which element of the compiler (loader or linker) gives
that error: it's for a school/university assignment.

-Mary


More information about the Programming mailing list