Re: Binary Source Code
- From: Capstar <news@xxxxxxxxxxxxx>
- Date: Mon, 25 Sep 2006 10:56:38 +0200
newtoqtopia@xxxxxxxxxxx schreef:
Hi,
Thanks a lot for reading my post.
I would like to know about the following, i have no idea how to do this
and neither do i know where to start from so any hints would be
appreciated.
I would like to give my source code to another friend of mine in binary
format , he wants to create his applications on my code and would
require my binary files to be used at the time of compilation.How do i
make the configure files or make files for this kind of a
configuration.ANy ideas or Urls i can look at which tell me how to go
about it. i have neglible experience with make files so it would be
really appreciated if some one can guide me in this.
Usually when you want to provide somebody with 'sources in binary format' we speak about libraries. These can either be static or dynamic libraries.
When you (or your friend) uses a static library, the object code will be linked into the application. This is nice when it's not too much code. However if the library contains a huge amount of code it will grow your executable substantially. And if your library will be used in multiple applications, all of these applications will have a copy of your object code. In that case a shared library might be preferable since as its name suggests, it is shared between multiple applications. This does mean that the shared library is installed on the target machine.
Second, is it possible to give some files as binary files and some
files in complete (source files),how will the compilation work now.
If you're talking about .c/.cc/.cpp files or any other file that really contains code, just copy it to your friends machine. If you're talking about header files, you'd usually ship them in combination with the library. Without them your friends compiler wouldn't know what functions are available in the library and what they look like.
For creating a library package, have a look at the gnu autotools and libtool. You get a package that is capable of create static and dynamic libraries from the same source.
Thanks a ton in advance
newbei
Mark
.
- References:
- Binary Source Code
- From: newtoqtopia
- Binary Source Code
- Prev by Date: Re: Binary Source Code
- Next by Date: Re: one-to-one client server design
- Previous by thread: Re: Binary Source Code
- Next by thread: how to write a structure in a shared mem segment.
- Index(es):
Relevant Pages
|