I am a freshman that attends a CS college. I am learning C and we have to use some external libraries . While no problems apppear when I include those libraries,when im using a library specific syntax(for example GetInteger) vs code outputs: " undefined reference to GetInteger"
Here is a simple example:
#include <stdio.h>
#include "simpio.h"
#include "genlib.h"
#include <stdlib.h>
int main()
{
   int age;
   printf("Whats your age?\n");
   
   age=GetInteger();
   printf("Your age is %d",age);
   return 0;
}
Those are my c_ccp_properties.json:
{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**","C:\\MinGW\\include","C:\\MinGW\\lib","C:\\MinGW\\lib\\gcc\\mingw32\\6.3.0"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "compilerPath": "C:\\MinGW\\bin\\gcc.exe",
            "cStandard": "gnu11",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "gcc-x86"
        }
    ],
    "version": 4
} 
My launch.sjon:
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "gcc.exe - Build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
            
            "args":["-g", "-o", "out.exe", "main.cpp", "test.c"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "\\usr\\bin\\gdb.exe",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "C/C++: gcc.exe build active file"
        }
    ]
}
and my tasks.json:
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "g++ build active file",
            "command": "/usr/bin/g++",
            "args": [],
            "options": {
                "cwd": "/usr/bin"
            }
        }]
}