Need help linking libraries in vscode

I’m getting ton’s of errors when i try to build such as “undefined reference to `SDL_Init’”. I’d rather not have to switch from vscode as i use it for everything else. Sorry i’m new to c++.

What system do you have?