Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: unresolved externals visual studio 2013  (Read 994 times)

0 Members and 1 Guest are viewing this topic.

jameswynands

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Windows 10
    unresolved externals visual studio 2013
    « 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);
    }

    jameswynands

      Topic Starter


      Newbie

      • Experience: Beginner
      • OS: Windows 10
      Re: unresolved externals visual studio 2013
      « Reply #1 on: October 01, 2017, 08:35:54 PM »
      ???????????????????

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1083
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 8
      Re: unresolved externals visual studio 2013
      « Reply #2 on: October 01, 2017, 10:28:18 PM »
      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.
      I was trying to dereference Null Pointers before it was cool.