Re: [Mspgcc-users] Linking

2013-04-18 Thread Orlando Arias
You need to explicitly link the other object files into the final elf as well. msp430-gcc -Os -Wall -g -mmcu=msp430f5438a main.o bluetooth.o comm.o characters.o output.o -o main.elf On Wed, 2013-04-17 at 20:20 -0400, Ian Chapman wrote: > Hi all, > My Makefile produces all the dot.o files from

[Mspgcc-users] Linking

2013-04-17 Thread Ian Chapman
Hi all, My Makefile produces all the dot.o files from the dot.c files with a few warnings. However the link stage fails to find the functions called by main.c that are specified in the dot.h and defined in the dot.c files and by then should be in dot.o files. Makefile CC=msp430-gcc CFLAGS=

Re: [Mspgcc-users] Linking problem

2012-10-04 Thread Ian82
You'll want to specify the processor when compiling and linking. msp430-gcc -mmcu=xxx main.o -o main.elf replace xxx with the processor that you are using like msp430f149 Thanks Adam, I guess that

Re: [Mspgcc-users] Linking problem

2012-10-04 Thread Adam Ford
, rom starts, etc. adam -Original Message- From: Ian Chapman [mailto:ichap...@videotron.ca] Sent: Thursday, October 04, 2012 1:42 PM To: mspgcc-users@lists.sourceforge.net Subject: [Mspgcc-users] Linking problem I'm using the PCB from TI with the msp4302211 packaged in a 14 pin DIP. My

[Mspgcc-users] Linking problem

2012-10-04 Thread Ian Chapman
I'm using the PCB from TI with the msp4302211 packaged in a 14 pin DIP. My msp430-gcc --version from Mint13 is msp430-gcc (GNU GCC patched mspgcc-20110716) 4.5.3 I have made a small "c" program to get into the swing of it and that loaded into 0xf800 with mspdebug ran the way I expected. Trying th

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-07 Thread Gianni Di Caro
You're right Sergey! I've finally got the point. Unfortunately it's the first time I'm playing with these linker scripts, so it took some time to figure it out. However, since I checked that the redefined memory regions are actually the same both in my script and in the system script, I assume t

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-07 Thread Sergey A. Borshch
Gianni Di Caro wrote: /opt/mspgcc/bin/msp430-ld:/opt/mspgcc/msp430/lib/ldscripts/msp430x1612.xn:6: warning: redeclaration of memory region 'text' /opt/mspgcc/bin/msp430-ld:/opt/mspgcc/msp430/lib/ldscripts/msp430x1612.xn:7: warning: redeclaration of memory region 'data' Excuse me, I paid no at

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-07 Thread Gianni Di Caro
Hi, Thanks for the help, TonyB and Sergey. I followed your recommendations (and also tried several other different options), but it still doesn't work, I always get the same errors: opt/mspgcc/lib/gcc-lib/msp430/3.2.3/libgcc.a(_copy_data.o): In function `__do_copy_data': (.init4+0x2): undefine

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-06 Thread TonyB
AM Subject: [Mspgcc-users] linking problems in linux (undefined symbols) Hi, I'm experiencing problems similar to those discussed in a previous thread (Can't compile programs under OSX). <http://sourceforge.net/mailarchive/forum.php?thread_name=484455EE.7030209%40gmail.com&

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-05 Thread Sergey A. Borshch
Uups... sorry. packaging/patches/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch and packaging/patches/binutils-2.18-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch for binutils 2.17 and binutils 2.18 respectively. Sorry again. packaging/patches/binutils-ld_scripts.patch is the right o

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-05 Thread Sergey A. Borshch
Sergey A. Borshch wrote: Binutils patch from mspgcc cvs repository (packaging/patches/binutils-ld_scripts.patch) adds those symbols to scripts templates. Uups... sorry. packaging/patches/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch and packaging/patches/binutils-2.18-14x1-20x1-20x2-2

Re: [Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-05 Thread Sergey A. Borshch
Gianni Di Caro wrote: I successfully installed all the necessary packages and have gcc-3.2.3 (+3.3 for msp) and binutils 2.17 (patched with the patches from the CVS repository). In function `__do_copy_data': config/msp430/libgcc.S:(.init4+0x2): undefined reference to `__data_size' config/msp

[Mspgcc-users] linking problems in linux (undefined symbols)

2008-08-05 Thread Gianni Di Caro
Hi, I'm experiencing problems similar to those discussed in a previous thread (Can't compile programs under OSX). However, the solutions suggested there didn't fully work in my case.

Re: [Mspgcc-users] Linking errors, i think.

2008-07-08 Thread Hardy Griech
Adam Bark wrote: : /home/a/apb14/programming/Plume/build/usr/lib/gcc-lib/msp430/3.2.3/libgcc.a(_copy_data.o)(.init4+0x2): In function `__do_copy_data': : undefined reference to `__data_size' /home/a/apb14/programming/Plume/build/usr/lib/gcc-lib/msp430/3.2.3/libgcc.a(_copy_data.o)(.init4+0xc): I

[Mspgcc-users] Linking errors, i think.

2008-07-08 Thread Adam Bark
I followed the instructions from the manual for compiling/installing everything required except gdb wrote the test script: ### test.c int main() { return 0; } ### tried to compile and got the error below however if I use -c so that it doesn't link it works fine, what could be wrong? Thanks, Adam

[Mspgcc-users] Linking standard library in /lib with mspgcc compiler, how?

2005-04-22 Thread Krisakorn Rerkrai
Hi all, Does anybody know how to link my code to the standard libraries(in /lib/)? For example, in my Makefile, I build a binary file with my c codes using a command like this: gcc (object1.c) (object2.c) -o (output) -lfl It's working fine with gcc compiler. But if I want to use this code

[Mspgcc-users] Linking expf and other math.h functions

2003-04-06 Thread Petr Hanc
Hello. When I call expf function and link the program with libm, I get "undefined reference" error. Calling __ieee754_expf is OK. I use libm from mspgcc-030306.exe. I tested some other functions from math.h. These functions generate the same error (the others not): sinhf expf logf log10f powf sq