title: Compile Error in Visual Studio Code
body: <p>I tried to compile simple code with <strong>Visual Studio Code</strong> and <strong>GCC</strong>, but it failed and following error message appeared.</p>
  
  <pre><code>//////////// LinkedList.h ////////////
  #pragma once
  
  typedef struct LINKEDLIST {
      Node* head;
      Node* cur;
      Node* before;
      int numOfData;
      int(*comp)(LData d1, LData d2);
  }LinkedList;
  
  typedef LinkedList List;
  void ListInit(List* plist);
  
  
  //////////// LinkedList.c ////////////
  #include &lt;stdio.h&gt;
  #include "LinkedList.h"
  
  void ListInit(List* plist) {
      plist-&gt;head = (Node*)malloc(sizeof(Node));
      plist-&gt;head-&gt;next = NULL;
      plist-&gt;comp = NULL;
      plist-&gt;numOfData = 0;
  }
  
  
  //////////// main.c /////////////
  #include &lt;stdio.h&gt;
  #include "LinkedList.h"
  
  List list;
  ListInit(&amp;list);
  </code></pre>
  
  <p>If I compile this code, an error <strong>undefined reference to 'ListInit'</strong> is occured.
  So I compiled <code>LinkedList.c</code> separately and another error log is appeared like this:</p>
  
  <pre><code>c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p>I think I built it with <code>Windows Application</code>, not <code>Console Application</code>. But I couldn't find the option about it in <strong>VS Code</strong>.</p>
  
  <p>How can I compile source code with console mode?</p>