This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem creating a static library


Thank you very much.

  I have done several tests with the things that you have purposed me. But I
still have the same results.

  I do not know why, but the further I get is with the ld -r *.o new.o-

  when doing this it gives me a lot of problems when compiling the object.
  sed 's/private_extern/globl/'

  When doing the
  's/,no_toc//'
  I think is like this because notoc is not found, and no_toc yes with a
comma before.
  It gets as far as if I were using the ld -r *.o -o new.o.

   So i get the same 4 undefined symbols.

   My boss is tellign me to test with machine dependant flags. The thing is
that in the same Mac OS X works with the 3.1 version of g++ but now with the
2.95.2

    So I do not know what to do, because the machine is the same.

    I have seen that the libgcc.a is not in the 2.95.2 gcc directory only in
the 3.1 directory.  Is that a problem for this. Sorry but I am really
worried about this problem.


    Thanks in advance!
    Danilo

----- Original Message ----- 
From: "Mike Stump" <mrs@apple.com>
To: "Danilo José" <danilo.guerrero@deimos-space.com>
Cc: <gcc@gcc.gnu.org>
Sent: Friday, October 01, 2004 3:15 AM
Subject: Re: problem creating a static library


> On Sep 30, 2004, at 6:05 PM, Danilo José wrote:
> >> -fexport-coalesced with the 3.3 compiler, if you had to do this with
> >> the gcc2 compiler, sed 's/private_extern/globl/'...  :-(
> >
> > could you explain me a little more how to do that last line?
> >   I have not understood this exactly what should I do here?
> >   Sorry my level of unix is not very good.
>
> >> gcc foo.c -S; sed 's/notoc,//' <foo.s >foo1.s; gcc foo1.s -o foo.o
>
> Combining the two, we get:
>
> gcc foo.c -S; sed 's/private_extern/globl/' <foo.s >foo1.s; gcc foo1.s
> -o foo.o
>
> Further help with basic makefiles and basic unix commands are well
> beyond the scope of this list...
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]