Here is a copy of what I have in the console window.
I am using the Managed makefile.
I have the mmcu specified in both the complier and linker.

My file is named test

**** Full rebuild of configuration Release for project test ****

make -k clean all

rm -rf test.o test.d test

Building file: ../test.c

msp430-gcc -O0 -g -Wall -mmcu=msp430x412 -mmcu=msp430x412 -o test.o ../test.c

../test.c:23:2: warning: no newline at end of file

Finished building: ../test.c






Building target: test

msp430-gcc -mmcu=msp430x412 -o test test.o

test.o(.text+0x3a):gcrt0.S:37: multiple definition of `_unexpected_1_'

/cygdrive/c/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/crt430x412.o(.text+0x0):gcrt0.S:37: first defined here

test.o(.vectors+0x0): In function `wait':

/cygdrive/c/ecl_temp/eclipse/workspace/test/Release/../test.c:23: multiple definition of `InterruptVectors'

/cygdrive/c/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/crt430x412.o(.vectors+0x0):gcrt0.S:37: first defined here

msp430-ld: region vectors is full (test section .vectors)

make: *** [test] Error 1

make: Target `all' not remade because of errors.

Build complete for project test






----- Original Message ----- From: "Chris Liechti" <cliec...@gmx.net>
To: <mspgcc-users@lists.sourceforge.net>
Sent: Monday, November 29, 2004 7:34 PM
Subject: Re: [Mspgcc-users] eclipse and elf file


Garret Crisler wrote:
I am having trouble getting the complier to output the ".elf"  file.
I am getting only a ".o"  file output. I have select the binary
parser, I have the -g option included in the options that are being
passed to the compiler. I can't seem to find a way to tell the
program that I need the output to be in the elf format.

"standard make" or "managed make"? do you see any errors in the "build console" window?

for "standard make", just create a normal makefile where you link your objects like
msp430-gcc -ggdb3 obj1.o obj2.o

or look at one of the examples that come with mspgcc.

"managed make" requires that you specify -mmcu=... in the project options. it needs to be specified for the compiler and linker (and assembler if you have .S files). the build will abort with errors otherwise.

chris


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to