Re: Binary Source Code



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
.



Relevant Pages

  • Re: Copying for "friends" - 45% of consumers get music that way
    ... >>> according to the laws in The Netherlands, if you borrow a CD from a ... >>> friend or a library etc. and you make a copy of that CD, ... > Don't libraries post warnings about making copies of copyrighted books, ...
    (rec.music.classical.recordings)
  • Libraries in NH heavily monitoring Internet use,article link
    ... One friend tried to hunt down sites promoting ... would realize that the person was trying to help the FBI. ... What concerns me is that such libraries have no stated monitoring ...
    (alt.privacy)
  • Re: Copying for "friends" - 45% of consumers get music that way
    ... you pay a borrowing charge for it. ... >> Don't libraries post warnings about making copies of copyrighted books, ... > Some years ago an artist friend of mine took one of her originals to ... My local Staples doesn't bother to look at what is being copied. ...
    (rec.music.classical.recordings)
  • Re: Chez Watt: Re: real theories vs imaginary tales such as natural
    ... appeared in talk.origins, posted by topmind ... Bob Casanova wrote: ... Libraries are your friend. ... Citations are your friend, and you have none. ...
    (talk.origins)
  • Re: Appalling...
    ... and the libraries around ... The local nightclub that used to do underage ... Our youngest aged 14 was moved on with a friend around 8 o'clock on a ... summer's evening from the green in front of the castle by the police. ...
    (uk.philosophy.humanism)