[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Huge binaries. g++ 3.2.2 on SCO 3.2v5.05
From: |
J. L. Schilling |
Subject: |
Re: Huge binaries. g++ 3.2.2 on SCO 3.2v5.05 |
Date: |
11 May 2004 09:24:19 -0700 |
llewelly <llewelly.at@xmission.dot.com> wrote in message
news:<867jvkt3i8.fsf@Zorthluthik.local.bar>...
> ndchealthcom@yahoo.com (John) writes:
>
> > After replacing g++ version 2.95.3 with g++ 3.2.2 my binary sizes have
> > become extremely large on SCO 3.2v5.05.
> > Only C++ binaries are like this, C compiles are fine (less than 6K for
> > hello world).
> [snip]
>
> Does gcc support shared linking on SCO? Try
> $ g++ -shared hello.cc
That would be creating a shared library, but the poster wants
to create an a.out binary. What the poster needs to do is build
g++ so that libstdc++ is a dynamic library (.so) and not just an
archive (.a). This should keep all the ISO C++ iostreams stuff
(which tends to get large from locale stuff dependencies) from
being pulled into the a.out.
Jonathan Schilling