I am new to OpenCV, but i just cant get it to work and i am kinda desperate

I keep getting this error:

C:/Users/myuser/Desktop/URSS/main.cpp:6: undefined reference to cv::imread(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)

I tried to search online, and tried different stuff, different tutorials, but nothing seems to work, if i cant find any solution here, i guess i will just give up on this project.

My code is this:

#include <iostream>
#include <opencv2/opencv.hpp>

int main(int argc, char** argv){
    auto filename = "C:/Users/myuser/Desktop/541957.png";
    auto image = cv::imread(filename);

    cv::imshow("Image", image);
    cv::waitKey();

    return 0;
}