thanx Grant...
I've made quite amount of research on how to do this.... people tellme to
invoke the ld command as the following:
msp430-ld -r -o lib.o $(OBJECTS)
However my problem is that all global variables that are not initialized in
the declaration statement cause the classic error "undefined reference".
I just wonder if it would be an error specific to msp430-ld.
Has anybody performed an incremental link with msp430-gcc before?
The program links as it should when I make a full link.
I sent an email to the binutils mailing list and I'm still waiting for an
answer.
Yvan
From: Grant Edwards <[email protected]>
Reply-To: "GCC for MSP430 - http://mspgcc.sf.net"
<[email protected]>
To: [email protected]
Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar
Date: Wed, 14 Jun 2006 23:42:50 +0000 (UTC)
On 2006-06-14, Yvan Castilloux <[email protected]> wrote:
> I declared them as extern in our code, telling the linker that
> it is defined somewhere else. However, it still doesn't link
> and tells me:
>
> "undefined reference to foo"
>
> My colleague does the same using the standard gcc and it works.
>
> Do you have any suggestions?
You're using the "-r" or "-i" flag when you link, and the
linker still complains about unresolved symbols? If so, then
that sounds like a binutils bug to me.
In any case, the binutils mailing list is the correct forum for
this discussion. It's really got little to do with gcc.
--
Grant Edwards grante Yow! I have a very good
at DENTAL PLAN. Thank you.
visi.com
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users