Hello,
I'm trying to port a program to linux. I have few projects: one of them is an executable program; others are dynamic libraries (.dll or .so). I need to link dynamic libraries with the main executable.
On windows I have to use import library ('dllname.a') in linking to link with 'dllname.dll'. I need to do the same thing on linux. My question is: do I need an import library when linking with shared objects (.so)? Or maybe I can simply include .so file in linking?
man gcc for more information about the -L and -l parameters. Once it compiles, the executable still needs to find the shared library at runtime. One way is to set the LD_LIBRARY_PATH environment variable.