The preLaunchTask 'undefined' terminated with exit code 1

Hi, I ran into a problem when I reran my code and below is the detail:


I tried to restart the vscode and restart my hardware Nexys A7 FPGA, but nothing helped.
How to fix the problem?
Any answer will be appreciated :grinning:

The output in the background says that there was a problem compiling: Multiple definitions of the β€œmain” function from the src/DisplayInverse.c and src/FlashSwitchesToLEDs.c file. Seems like you put both C files in there wanting to define the main function? Delete or move one out of src/.

1 Like

Got it. It works. Thanks a lot!