Search Results

Search: Posts Made By: GRMartin
Forum: Programming 01-18-2020
10,301
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
10,301
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
10,301
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
10,301
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
10,301
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...
Forum: Programming 01-04-2020
9,075
Posted By GRMartin
You have several replies and I don't kow if your...
You have several replies and I don't kow if your problem is solved but I'll mention that includes in <> are supposed to be for files in system directories i.e. /usr/include

Files in other...
Showing results 1 to 6 of 6

 

Featured Tech Videos

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