V5 JAR Template "Make process closed with exit code: 2"

As the title says, I am having problems with my JAR template program.

All I know is that I created two files (function.cpp and function.h) and created 3 “functions” and the log reports that they are all undefined references. Linked my code below. TIA.

JAR-Template (1) copy.zip (37.6 KB)

There are no files called function.cpp and function.h. Otherwise, it builds ok here.

3 Likes

Ok, so, apparently, my code was not in a folder for some reason, but it was available to VS Code, so I just decided to scrap it. Now I have a different issue. I created a new JAR Template and am now getting different issues.

JAR-Template (1).zip (165.2 KB)

2 Likes

Still builds ok for me.
perhaps post the errors and a screen shot of your project structure.

2 Likes

I tried looking for the exact file I was using but it wasn’t there, then I figured out that VS Code was using an old file that wasn’t on my computer anymore.

2 Likes

you should use vex extension in vs code after you install extension you should open a new project and after you should copy ur files and folders. otherwise it cannot recognize vex files and gives an error