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


On Sep 30, 2004, at 5:12 PM, Danilo José wrote:
And what happens is that I get still 4 undefined symbols:

 ___Q23golt13ObjAppendList1ZPQ23gol14CalcBinderDatalPCPB1
___Q23golt13ObjAppendList1ZblPCb
___ls__Q23golt13ObjAppendList1ZPQ23gol14CalcBinderDataRCPB1
___ls__Q23golt13ObjAppendList1ZbRCb

:-(


The .s files I do not think it will be a good approach, because I need to
deliver this makefile to build the libgol.a, so others could use it.

You misunderstand. You can do


gcc foo.c -S; sed 's/notoc,//' <foo.s >foo1.s; gcc foo1.s -o foo.o

if you wanted in the makefile, not the mot pleasant of things to do, but not that hard either.

As far as I know the problem with this is that it has the flag 's' if it
were 'S' it would work. So is there any way to get the 'S' flag, with a
makefile.

-fexport-coalesced with the 3.3 compiler, if you had to do this with the gcc2 compiler, sed 's/private_extern/globl/'... :-(



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