
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled and can be enabled by SWDTEN bit of the WDTCON register) #pragma config FOSC = INTRC_NOCLKOUT// Oscillator Selection bits (INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN) Terminal will be reused by tasks, press any key to close it. \Build.cmd 16f887" terminated with exit code: 1. The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command. Non line specific message: (1091) main function "_main" not defined \main.cĬopyright (C) 2021 Microchip Technology Inc.Ĭ:\Users\raymu_000\Documents\Programming\VisualStudioCode\PIC_C++_on_VSCode\Led-Pot_Circuit_Test>C:\Progra~1\Microchip\xc8\v2.32\bin\xc8.exe -chip=16f887 -outdir=".\output-files" ".\Project\InitApp.c"Ĭ:\Progra~1\Microchip\xc8\v2.32\pic\bin\picc -chip=16f887 -outdir=.\output-files. \Build.cmd 16f887 mkdir output-filesĪ subdirectory or file output-files already exists.Ĭ:\Users\raymu_000\Documents\Programming\VisualStudioCode\PIC_C++_on_VSCode\Led-Pot_Circuit_Test>C:\Progra~1\Microchip\xc8\v2.32\bin\xc8.exe -chip=16f887 -outdir=".\output-files" ".\main.c"Ĭ:\Progra~1\Microchip\xc8\v2.32\pic\bin\picc -chip=16f887 -outdir=.\output-files. This is what is shown in the terminal: > Executing task in folder Led-Pot_Circuit_Test.

Instead, I would like to keep them separate and make it easy to transfer the code into any future project.įrom looking up similar issues I am assuming this is somewhat simple and that I am probably struggling so much with it because I'm missing the basics of coding in C.

I'm working on a project which will likely become a very long program so I am trying to avoid cluttering my main class with a bunch of functions. I am new to coding in C and I cannot figure out the proper way to link my files together so that I can use code from one class in another.
