public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* numeric_limits
@ 2002-09-20  5:32 Matthias Oltmanns
  2002-09-20  5:59 ` static linking Arnauld Michelizza
  2002-09-20  7:45 ` numeric_limits Claudio Bley
  0 siblings, 2 replies; 8+ messages in thread
From: Matthias Oltmanns @ 2002-09-20  5:32 UTC (permalink / raw)
  To: gcc-help

Hi,

I'am using gcc-2.96-85 with libstdc++-2.96-85 and i wonder
where the header <limits> has to be found. (see Stroustrup 22.2)

I would like to use things like
numeric_limits<anyType>::is_signed

Any suggestions?

Thanks in advance
Matthias Oltmanns


-- 
Matthias Oltmanns, Dipl.-Inf.
bei EADS GmbH, Wilhelmshaven
Tel: +49 (4421) 1543 274
mailto:Mathias.Oltmanns.Oltmanns@sysde.eads.net

^ permalink raw reply	[flat|nested] 8+ messages in thread

* static linking
  2002-09-20  5:32 numeric_limits Matthias Oltmanns
@ 2002-09-20  5:59 ` Arnauld Michelizza
  2002-09-20  7:45 ` numeric_limits Claudio Bley
  1 sibling, 0 replies; 8+ messages in thread
From: Arnauld Michelizza @ 2002-09-20  5:59 UTC (permalink / raw)
  To: gcc-help


I wonder if there is a way to make a static binary from a dynamically
linked one.

For example, `dyn' is a dynamically linked binary :
$ ldd dyn
        libc.so.6 => /lib/libc.so.6 (0x40020000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I have tried the following to obtain a static binary :
$ gcc -static -z muldefs dyn

But with no succes.


--
Arnauld Michelizza


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: numeric_limits
  2002-09-20  5:32 numeric_limits Matthias Oltmanns
  2002-09-20  5:59 ` static linking Arnauld Michelizza
@ 2002-09-20  7:45 ` Claudio Bley
  1 sibling, 0 replies; 8+ messages in thread
From: Claudio Bley @ 2002-09-20  7:45 UTC (permalink / raw)
  To: Mathias.Oltmanns.Oltmanns; +Cc: gcc-help

>>>>> "Matthias" == Matthias Oltmanns <Mathias.Oltmanns.Oltmanns@sysde.eads.net> writes:

    Matthias> Hi, I'am using gcc-2.96-85 with libstdc++-2.96-85 and i
    Matthias> wonder where the header <limits> has to be found. (see
    Matthias> Stroustrup 22.2)

    Matthias> I would like to use things like
    Matthias> numeric_limits<anyType>::is_signed

    Matthias> Any suggestions?

Upgrade your libstdc++ or/and your compiler to a real release such as
GCC 3.0, 3.1 or 3.2 OR use another Standard C++ library such as e.g.
stlport.

-- 
Claudio Bley                                                        _ 
                                             ASCII ribbon campaign ( )
ICQ# 83197241                                 - against HTML email  X 
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: static linking
@ 2003-10-06 17:20 lrtaylor
  0 siblings, 0 replies; 8+ messages in thread
From: lrtaylor @ 2003-10-06 17:20 UTC (permalink / raw)
  To: pekka.holopainen; +Cc: gcc-help

This will cause the library to get linked in statically, but it will
also cause ALL libraries specified after it (including any default
system libraries, such as the C library) to get linked in statically.
If that's OK, then this should work fine.

Lyle

-----Original Message-----
From: Liguo Song [mailto:liguo.song@vanderbilt.edu] 
Sent: Saturday, October 04, 2003 12:35 PM
To: Pekka Holopainen (KI/EAB)
Cc: 'gcc-help@gcc.gnu.org'
Subject: Re: static linking

man gcc
/static

The above get me to the -static option. Have you tried this?


Liguo



On Mon, 29 Sep 2003, Pekka Holopainen (KI/EAB) wrote:

> Hi
> 
> I am using gcc 2.95.3 and I have problem to link libstdc++ staticly.
> 
> When I start program and this lib is missing it always ask for it.
> What cn i do to get a static link module?
> 
> Regards Pekka
> 
> I have a new mail address: Pekka.Holopainen@ericsson.com
> My old e-mail address will function untill 2004-05-01. Please change
address in your personal address book.
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: static linking
  2003-09-29 13:41 Pekka Holopainen (KI/EAB)
@ 2003-10-04 18:35 ` Liguo Song
  0 siblings, 0 replies; 8+ messages in thread
From: Liguo Song @ 2003-10-04 18:35 UTC (permalink / raw)
  To: Pekka Holopainen (KI/EAB); +Cc: 'gcc-help@gcc.gnu.org'

man gcc
/static

The above get me to the -static option. Have you tried this?


Liguo



On Mon, 29 Sep 2003, Pekka Holopainen (KI/EAB) wrote:

> Hi
> 
> I am using gcc 2.95.3 and I have problem to link libstdc++ staticly.
> 
> When I start program and this lib is missing it always ask for it.
> What cn i do to get a static link module?
> 
> Regards Pekka
> 
> I have a new mail address: Pekka.Holopainen@ericsson.com
> My old e-mail address will function untill 2004-05-01. Please change address in your personal address book.
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* static linking
@ 2003-09-29 13:41 Pekka Holopainen (KI/EAB)
  2003-10-04 18:35 ` Liguo Song
  0 siblings, 1 reply; 8+ messages in thread
From: Pekka Holopainen (KI/EAB) @ 2003-09-29 13:41 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

Hi

I am using gcc 2.95.3 and I have problem to link libstdc++ staticly.

When I start program and this lib is missing it always ask for it.
What cn i do to get a static link module?

Regards Pekka

I have a new mail address: Pekka.Holopainen@ericsson.com
My old e-mail address will function untill 2004-05-01. Please change address in your personal address book.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Static linking
@ 2002-01-23  3:24 Israel Alvarez
  0 siblings, 0 replies; 8+ messages in thread
From: Israel Alvarez @ 2002-01-23  3:24 UTC (permalink / raw)
  To: GNU GCC help list

Hi everyone!,
I've been trying to link my binary statically with the libraries it uses, but 
for a "Hello World!" application it grows up to 4Mb!!!.
I think is because the binary stores the hole libraries, and not only the 
methods is going to use.
My question is, Is there any way of getting smaller binaries linking 
statically?
thanks,
ia

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Static linking
@ 2002-01-23  3:24 Israel Alvarez
  0 siblings, 0 replies; 8+ messages in thread
From: Israel Alvarez @ 2002-01-23  3:24 UTC (permalink / raw)
  To: GNU GCC help list

Hi everyone!,
I've been trying to link my binary statically with the libraries it uses, but 
for a "Hello World!" application it grows up to 4Mb!!!.
I think is because the binary stores the hole libraries, and not only the 
methods is going to use.
My question is, Is there any way of getting smaller binaries linking 
statically?
thanks,
ia

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-10-06 17:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-20  5:32 numeric_limits Matthias Oltmanns
2002-09-20  5:59 ` static linking Arnauld Michelizza
2002-09-20  7:45 ` numeric_limits Claudio Bley
  -- strict thread matches above, loose matches on Subject: below --
2003-10-06 17:20 static linking lrtaylor
2003-09-29 13:41 Pekka Holopainen (KI/EAB)
2003-10-04 18:35 ` Liguo Song
2002-01-23  3:24 Static linking Israel Alvarez
2002-01-23  3:24 Israel Alvarez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).