473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

static libirary

does any body here knows how to create a static link libirary (.a)
file in linux using GCC
Sep 6 '08 #1
10 1306
On Sep 6, 3:15 pm, raashid bhatt <raashidbh...@gmail.comwrote:
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>
Sep 6 '08 #2
raashid bhatt said:
does any body here knows how to create a static link libirary (.a)
file in linux using GCC
Search terms: gcc create static library

Altavista second hit, Lycos second hit:
http://www.faqs.org/docs/Linux-HOWTO...ary-HOWTO.html

Excite first hit, Google first hit, Yahoo! second hit:
http://www.adp-gmbh.ch/cpp/gcc/create_lib.html

Google Groups second hit: gnu.gcc.help

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 6 '08 #3
On 6 Sep 2008 at 12:15, raashid bhatt wrote:
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.

Sep 6 '08 #4
raashid bhatt <ra**********@gmail.comwrites:
does any body here knows how to create a static link libirary (.a)
file in linux using GCC
You've been directed to <news:gnu.gcc.helpbut you will probably get
an answer faster in <news:comp.unix.programmer>. 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.

--
Ben.
Sep 6 '08 #5
vi******@gmail.com writes:
On Sep 6, 3:15 pm, raashid bhatt <raashidbh...@gmail.comwrote:
>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>
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 <offtopicin a 4 line reply is childish to the extreme.
Sep 6 '08 #6
In article <g9**********@registered.motzarella.org>,
Richard <rg****@gmail.comwrote:
>vi******@gmail.com writes:
>On Sep 6, 3:15 pm, raashid bhatt <raashidbh...@gmail.comwrote:
>>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>

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 <offtopicin 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...

Sep 6 '08 #7
ga*****@shell.xmission.com (Kenny McCormack) writes:
In article <g9**********@registered.motzarella.org>,
Richard <rg****@gmail.comwrote:
>>vi******@gmail.com writes:
>>On Sep 6, 3:15 pm, raashid bhatt <raashidbh...@gmail.comwrote:
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>

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 <offtopicin 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...
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.

Sep 6 '08 #8
In article <87************@bsb.me.uk>,
Ben Bacarisse <be********@bsb.me.ukwrote:
>raashid bhatt <ra**********@gmail.comwrites:
>does any body here knows how to create a static link libirary (.a)
file in linux using GCC

You've been directed to <news:gnu.gcc.helpbut you will probably get
an answer faster in <news:comp.unix.programmer>. 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".

Sep 6 '08 #9
raashid bhatt wrote:
>
does any body here knows how to create a static link libirary (.a)
file in linux using GCC
Yes.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Sep 7 '08 #10
On 7 Sep 2008 at 0:26, CBFalconer wrote:
raashid bhatt wrote:
>>
does any body here knows how to create a static link libirary (.a)
file in linux using GCC

Yes.
It's just a single word, but there's everything you could ever need to
know about CBF in that post.

Sep 7 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Scott J. McCaughrin | last post by:
The following program compiles fine but elicits this message from the linker: "undefined reference to VarArray::funct" and thus fails. It seems to behave as if the static data-member:...
15
by: Samee Zahur | last post by:
Question: How do friend functions and static member functions differ in terms of functionality? I mean, neither necessarily needs an object of the class to be created before they are called and...
55
by: Zytan | last post by:
I see that static is more restricted in C# than in C++. It appears usable only on classes and methods, and data members, but cannot be created within a method itself. Surely this is possible in...
14
by: Jess | last post by:
Hello, I learned that there are five kinds of static objects, namely 1. global objects 2. object defined in namespace scope 3. object declared static instead classes 4. objects declared...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.