1.

Solve : unresolved externals visual studio 2013?

Answer»

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 /* printf, scanf definitions*/
#include "stdafx.h"
#include
#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.



Discussion

No Comment Found