static libirary

R

raashid bhatt

does any body here knows how to create a static link libirary (.a)
file in linux using GCC
 
V

vippstar

does any body here knows how to create a static link libirary (.a)
file in linux using GCC
<offtopic>
yes.
</offtopic>
Your question is off-topic. Try <news:gnu.gcc.help>
 
A

Antoninus Twink

does any body here knows how to create a static link libirary (.a)
file in linux using GCC

It's as simple as putting something like

OBJECTS=feature1.o feature2.o feature3.o
libfoo.a($(OBJECTS)) : $(OBJECTS)

into your Makefile. Make's implicit rules will take care of everything.
 
B

Ben Bacarisse

raashid bhatt said:
does any body here knows how to create a static link libirary (.a)
file in linux using GCC

You've been directed to <but you will probably get
an answer faster in < The gcc group is
more directed to the compiler itself and making a library uses other
tools which, though part of the gcc "tool chain", are really general
Unix/Linux tools.
 
R

Richard

<offtopic>
yes.
</offtopic>
Your question is off-topic. Try <news:gnu.gcc.help>

How can it be off topic when C programmers using all sorts of platforms
contribute here? I can think of no better place to get a "generic"
answer more likely to lead to portable makefiles.

As indeed he did.

And putting <offtopic> in a 4 line reply is childish to the extreme.
 
K

Kenny McCormack

How can it be off topic when C programmers using all sorts of platforms
contribute here? I can think of no better place to get a "generic"
answer more likely to lead to portable makefiles.

As indeed he did.

And putting <offtopic> in a 4 line reply is childish to the extreme.

You expected anything else form vippstar?

BTW, I noticed some more obvious brown-nosing by vippy in another thread.
One way to get in with the regs is to intentionally post something that is
"wrong", then, when corrected by a regular, be oh-so-grateful for the
correction. They love that sort of thing...
 
R

Richard

You expected anything else form vippstar?

BTW, I noticed some more obvious brown-nosing by vippy in another thread.
One way to get in with the regs is to intentionally post something that is
"wrong", then, when corrected by a regular, be oh-so-grateful for the
correction. They love that sort of thing...

Yup. Already noted. I had vippstar tagged as a clc "reg" wannabe a while
back as soon as he started with the "Mr" bit and saying "indeed" a bit
too frequently.
 
K

Kenny McCormack

You've been directed to <but you will probably get
an answer faster in < The gcc group is
more directed to the compiler itself and making a library uses other
tools which, though part of the gcc "tool chain", are really general
Unix/Linux tools.

Actually, as the good Mr. Heathfield has pointed out, you will get the
best and fastest answer just by doing a little googling. This sort of
question is easier answered by "the web" than by "the Usenet".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top