Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: GRMartin
Forum: Programming 01-18-2020
7,643
Posted By GRMartin
No, they are not at all the same thing. An...
No, they are not at all the same thing. An archive is just that. A collection of object files that can be statically linked to your executable. Shared objects are dynamically linked at runtime. They...
Forum: Programming 01-17-2020
7,643
Posted By GRMartin
rpath is actually a linker option rather then a...
rpath is actually a linker option rather then a compiler option. gcc passes it to ld.



Well, th estandard way to use shared objects (.so) is to install them in the system directories used for...
Forum: Programming 01-15-2020
7,643
Posted By GRMartin
If you link to a shared library intead of the...
If you link to a shared library intead of the archive it's a little more complicted. If the shared library isn't installed in a directory know to the loader then you need to tell it where to find it....
Forum: Programming 01-15-2020
7,643
Posted By GRMartin
No. Each folder requires a -L entry. ...
No. Each folder requires a -L entry.






I presumed htslib-1.10-2 was your library. The -l option is for the library itself. If the library is libhts.so then use -lhts





I'll have a...
Forum: Programming 01-15-2020
7,643
Posted By GRMartin
You can compile and link using compiler options....
You can compile and link using compiler options. The library is referenced using -l<its_name_here> and the path to the library using -L/path/to/lib.


-I is for the path to include directories.
...
Forum: Programming 01-15-2020
7,643
Posted By GRMartin
Undefined references means the compiler can't...
Undefined references means the compiler can't find compiled code for functions being called. If you want to use a subset of the library then you'll have to compile and link all the files used by the...
Showing results 1 to 6 of 6

 

Featured Tech Videos

All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy