If say I have only the binary of a another source file (no original source is available), then how to create this with my own program.

Like say I have a source file containing some function
print_hello()

Now I compile it and get the binary lib.o

Now another program test_lib.c is there which calls the function print_hello and it only has the lib.o available to it. So how to compile test_lib.c together with lib.o only.

Linking

<<snip>>

if U got satisfied plz click thread solved and rate me...
thanks

commented: Don't do this -1

jatish,

YOU PLAGIARIZING <<teddy-bear>>

if you're going to beg for "ratings" by stealing someone else's work, at least have the common courtesy to paraphrase your source material rather than posting it verbatim.

or do you think we're so stupid we can't find where you cut and paste from?

http://www.lisha.ufsc.br/teaching/os/exercise/hello.html


.


.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.