Hello all,
I've recently begun working with C++ under Linux and have been using Eclipse CDT as my development environment and I have a few questions about the platform. I've been downloading and trying out different libraries (SFML - http://www.sfml-dev.org ) and when I go to compile after linking to the folder where the libraries are included with the package, the compiler is unable to find them. It isn't until I use apt to download the SFML package from the repository and let it install it into the system library paths that it is able to find them.
My question boils down to not understanding why the compiler isn't looking where it was instructed to for the libraries and if it can't, how I should be handling libraries that aren't included in repositories. I also don't understand how the compiler knows the extension of the library. For example, the SFML System library is -lsfml-system, but the file is called libsfml-system.so.1.6. I'm not sure how the compiler knows that linking to sfml-system should be found in the file named differently.
I've recently begun working with C++ under Linux and have been using Eclipse CDT as my development environment and I have a few questions about the platform. I've been downloading and trying out different libraries (SFML - http://www.sfml-dev.org ) and when I go to compile after linking to the folder where the libraries are included with the package, the compiler is unable to find them. It isn't until I use apt to download the SFML package from the repository and let it install it into the system library paths that it is able to find them.
My question boils down to not understanding why the compiler isn't looking where it was instructed to for the libraries and if it can't, how I should be handling libraries that aren't included in repositories. I also don't understand how the compiler knows the extension of the library. For example, the SFML System library is -lsfml-system, but the file is called libsfml-system.so.1.6. I'm not sure how the compiler knows that linking to sfml-system should be found in the file named differently.
Comment