Undefined reference to ..
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
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
-
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.