I migrated from python to c++ recently;I am trying to do opencv4 but when I try to compile with cl it gives me an error saying several external symbols are missing. I don't want to try to install visual studio because of low finance and unbreakable love for vs code. Any help will be appreciated. Sample code is here. Sorry about some silly syntax errors, that is because I am typing by my phone.
#include <iostream>
#include <openvc2/opencv.hpp>
#include <openvc2/highgui.hpp>
using namespace cv;
int main(){
Mat img = imread("file.jpg");
imshow("win",img);
WaitKey(0);
destroyAllWindows();
return 0;