Error that I do not understand with Eclipse

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okay Lads, this is a Eclipse question although the actual target is SAMA5D44 we can ignore that, well I hope so.  Anyways, I have the following error when compiling.

Can anyone shed light on the cause of the error.

 

Thanks Freaks! 

22:45:05 **** Build of configuration Default for project getting_started ****
make TARGET=sama5d4-xplained 
DEP ../../examples/getting_started/fire_ip/tcp/tcp_rx.c
CC ../../examples/getting_started/fire_ip/tcp/tcp_rx.c
CC ../../examples/getting_started/fire_ip/tcp/tcp_sockets.c
CC ../../examples/getting_started/fire_ip/ip_layer/ip_protocol.c
LINK build/sama5d4-xplained/ddram/getting-started.elf
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_sockets.o: In function `get_acknowledge':
F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: multiple definition of `get_acknowledge'
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_rx.o:F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: first defined here
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_sockets.o: In function `get_acknowledge':
F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: multiple definition of `get_sequence'
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_rx.o:F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: first defined here
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_sockets.o: In function `get_acknowledge':
F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: multiple definition of `handle_reception'
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_rx.o:F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: first defined here
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/ip_layer/ip_protocol.o: In function `get_acknowledge':
F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/ip_layer/../tcp/tcp_rx.c:16: multiple definition of `get_acknowledge'
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_rx.o:F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: first defined here
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/ip_layer/ip_protocol.o: In function `get_acknowledge':
F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/ip_layer/../tcp/tcp_rx.c:16: multiple definition of `get_sequence'
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_rx.o:F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: first defined here
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/ip_layer/ip_protocol.o: In function `get_acknowledge':
F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/ip_layer/../tcp/tcp_rx.c:16: multiple definition of `handle_reception'
./build/sama5d4-xplained/ddram/examples/getting_started/fire_ip/tcp/tcp_rx.o:F:\atmel-software-package-master\examples\getting_started/../../examples/getting_started/fire_ip/tcp/tcp_rx.c:16: first defined here
collect2.exe: error: ld returned 1 exit status
make: *** [../../scripts/Makefile.rules:103: build/sama5d4-xplained/ddram/getting-started.elf] Error 1

22:45:09 Build Finished (took 3s.296ms)

 

This topic has a solution.
Last Edited: Tue. Oct 23, 2018 - 10:14 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got it, included a .c instead of a .h

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
although the actual target is SAMA5D44 we can ignore that, well I hope so.

I'd say 'no', no ignoring -- perhaps a moderator can move the thread to the appropriate ARM forum.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

on a side note theush, eclipse forces you to program correctly when compared to Atmel Studio 7.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
eclipse forces you to program correctly when compared to Atmel Studio 7
Go on? Tell us more about that.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fianawarrior wrote:
on a side note theush, eclipse forces you to program correctly when compared to Atmel Studio 7.
??? What does that have to do with posting an ARM-related question in an AVR8 forum?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Go on? Tell us more about that

A Google search uncovers

f you are using Eclipse, Visual COBOL 4.0 can automatically ...

 

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.