Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-14 Thread Grant Edwards
On 2006-06-14, Yvan Castilloux 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 hav

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-14 Thread Yvan Castilloux
-To: "GCC for MSP430 - http://mspgcc.sf.net"; To: mspgcc-users@lists.sourceforge.net Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar Date: Wed, 14 Jun 2006 13:51:58 + (UTC) On 2006-06-14, David Brown wrote: > Symbols that span seperate files must b

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-14 Thread Grant Edwards
On 2006-06-14, David Brown wrote: > Symbols that span seperate files must be visible to the linker, and must > therefore be in your object files (either as individual object files, or > combined in a library). Everything that is local to a single file can be > declared "static", and thus hidden.

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-14 Thread David Brown
cc 4.1! > > Best regards, > > Yvan > > > >From: "David Brown" > >Reply-To: "GCC for MSP430 - http://mspgcc.sf.net"; > > > >To: "GCC for MSP430 - http://mspgcc.sf.net"; > > > >Subject: Re: [Mspgcc-users] Making and adding a l

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-14 Thread Yvan Castilloux
f. I'm sure it would be very fun and challenging to migrate to mspgcc 4.1! Best regards, Yvan From: "David Brown" Reply-To: "GCC for MSP430 - http://mspgcc.sf.net"; To: "GCC for MSP430 - http://mspgcc.sf.net"; Subject: Re: [Mspgcc-users] Making and a

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-14 Thread David Brown
sage - From: "Yvan Castilloux" To: Sent: Tuesday, June 13, 2006 9:55 PM Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar > Hi David, > > I can't make all my variables static as I have global variables spanning > multiple files. The same app

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-13 Thread David Smead
How about encapsulating the globals in a structure. Sincerely, David Smead www.amplepower.com www.amplepower.net On Tue, 13 Jun 2006, Grant Edwards wrote: On 2006-06-13, Yvan Castilloux wrote: How can I make the variables and functions link without being visible to the application as they

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-13 Thread Grant Edwards
On 2006-06-13, Yvan Castilloux wrote: > How can I make the variables and functions link without being visible to the > application as they are not used? I don't want them to appear in any way in > the .lst file. > > I have spent most of the day using the strip all option (-s), even with the >

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-13 Thread Yvan Castilloux
tp://mspgcc.sf.net"; To: "GCC for MSP430 - http://mspgcc.sf.net"; Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar Date: Tue, 13 Jun 2006 09:01:29 +0200 - Original Message - From: "Yvan Castilloux" To: Sent: Tuesday, June 13, 20

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-13 Thread Yvan Castilloux
elieve that can let me do that. Thank you again, Yvan From: "David Brown" Reply-To: "GCC for MSP430 - http://mspgcc.sf.net"; To: "GCC for MSP430 - http://mspgcc.sf.net"; Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar Date: Tue

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-12 Thread David Brown
- Original Message - From: "Yvan Castilloux" To: Sent: Tuesday, June 13, 2006 12:29 AM Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar > Hi Grant, > > Thanx for your reply. > > My main goal is to create a library with which a user can

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-12 Thread Steve Underwood
Yvan Castilloux wrote: Hi all, I would like to know how to create a library of type .dll in windows and then link it into a project with msp430-gcc. A Windows .dll file is compiled to x86 code. Clearly, that cannot work on an MSP430. You must use msp430-gcc to compile the code. If you mean

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-12 Thread Yvan Castilloux
Reply-To: "GCC for MSP430 - http://mspgcc.sf.net"; To: mspgcc-users@lists.sourceforge.net Subject: Re: [Mspgcc-users] Making and adding a library without msp430-ar Date: Mon, 12 Jun 2006 21:51:33 + (UTC) On 2006-06-12, Yvan Castilloux wrote: > I would like to know how to cre

Re: [Mspgcc-users] Making and adding a library without msp430-ar

2006-06-12 Thread Grant Edwards
On 2006-06-12, Yvan Castilloux wrote: > I would like to know how to create a library of type .dll in > windows and then link it into a project with msp430-gcc. I don't think you can do that. > I don't want to use msp430-ar since anybody can see the C code > variables and recreate the C code. N