Undefined reference to ..

ZamoZidshoot Posted messages 13 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello,

I am currently a beginner on Visual Studio Code and I have a big problem with my libraries.
I am using a library called "Sentry.h". When I run a simple test program to use it, I get this error



The library is correctly installed and when I right-click on sentry.h -> Go to definition it opens the library without any issues. Moreover, there are no errors in the program.

I have already done quite a bit of research on forums without much explanation... So I'm trying my luck here!

I am working on Visual Studio Code, on a virtual machine running Ubuntu.

Thank you in advance.

Configuration: Windows / Chrome 97.0.4692.99

1 answer

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 940
     
    Hello,

    Thank you for avoiding screenshots whenever possible, as they are not practical for anyone. You can more simply report your code and compilation errors by copying and pasting them and formatting them with code tags.

    You need to link your program with the library associated with senty (probably a
    .dll
    file if you are on Windows and a
    .so
    file if you are on Linux). Since you are using VS, I refer you to this link to see how to proceed.

    Good luck.
    0