Apparently it can't find the proper libraries to link against my code. I work on arch and I thought I installed vtk, the project that supplies those libraries.
How can I check if those libraries exist on my computer? Is there a way to see if for example the library "vtkRendering" is properly installed on my computer?
the -l flag look for libraries in a stndar list of directories, like /usr/lib
vtk installs its libraries in /usr/lib/vtk-5.10/ (can see that with pacman --query --list vtk) so in order for the linker to find them you need to specify that directory with the -L flag.