Search Results

Search: Posts Made By: GRMartin
Forum: Programming 01-18-2020
15,657
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
15,657
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
15,657
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
15,657
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
15,657
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
15,657
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
14,110
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...
Forum: Programming 01-01-2020
20,644
Posted By GRMartin
I'd just like to add that a good way to use...
I'd just like to add that a good way to use realloc is to assign to a temp variable rather then the variable you are copying from. That way if realloc fails you haven't lost the memory in your...
Showing results 1 to 8 of 8

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