select the "Object" folder and click the objects you would like to append/link to your project. Several objects can be selected by SHIFT+RIGHT click on them. Appending is merging the object into your current blend file and active scene/layer. By linking, the object is not copied but linked to the original .
In computing, a linker or link editor is a computer system program that takes one or more object files (generated by a compiler or an assembler) and combines them into a single executable file, library file, or another "object" file.
No. They are not platform independent.
Passing -relocatable
or -r
to ld
will create an object that is suitable as input of ld
.
$ ld -relocatable a.o b.o -o c.o
$ gcc c.o other.o -o executable
$ ./executable
The generated file is of the same type as the original .o
files.
$ file a.o
a.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
$ file c.o
c.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
If you want to create an archive of two or more .o files (i.e.. a static library) use the ar
command:
ar rvs mylib.a file1.o file2.o
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With