Computer Hope
Software => Computer programming => Topic started by: jameswynands on October 01, 2017, 01:12:12 PM
-
I am writing a simple program for my class. It is supposed to show a snowman. I am getting the error "unresolved externals"" and when i try to run it, it says " The system cannot find the file specified".
#include <stdio.h> /* printf, scanf definitions*/
#include "stdafx.h"
#include <Windows.h>
#include "function.h"
/* Draws a hat*/
void
draw_hat(void)
{
printf(" ___\n");
printf("| |\n ");
printf("____\n");
}
/* Draws a circle*/
void
draw_circle1(void)
{
printf(" * \n");
printf("* *\n");
printf(" * *\n");
}
void
draw_circle2(void)
{
printf(" * \n");
printf("* *\n");
printf(" * *\n");
printf(" * \n");
}
void
draw_circle3(void)
{
printf(" * \n");
printf("* *\n");
printf(" * *\n");
printf(" * * /n");
return(0);
}
-
???????????????????
-
You are trying to return 0 in draw_circle3 which has no return type. So that module won't compile.
There is also no main routine, so it cannot be linked into a console application. I assume you made function.h.